Status Variables for Fill Factor of gcache
Bug #1185689 reported by
Jervin R
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Expired
|
Undecided
|
Unassigned |
Bug Description
I've been looking for a way to properly size gcache.size and determine for how long a node can stay down without doing an SST when it comes back online. However, Galera does not expose any of this easily. So I am filing a feature request here, maybe expose 3 values like fill in bytes and lowest and highest commited trx in gcache?
Changed in percona-xtradb-cluster: | |
status: | New → Incomplete |
To post a comment you must log in.
Gcache exposes seqno_max and seqno_locked. The transaction mapping is done at higher levels I think.
However, I see
pstream ------- ------- " << std::endl HEADER_ VERSION] << std::endl FILE_OPEN] ?"no":" yes") << std::endl FIRST_OFFSET] << std::endl ------- ------- " << std::endl;
<< "* GCache data file *" << std::endl
<< "------
<< "Version : " << header[
<< "Size : " << header[FILE_SIZE] << "bytes" << std::endl
<< "Closed : " << (header[
<< "Data offset : " << header[DATA_OFFSET] << std::endl
<< "First buffer : " << header[
<< "Next buffer : " << header[NEXT_OFFSET] << std::endl
<< "Min. seqno : " << header[SEQNO_MIN] << std::endl
<< "Max. seqno : " << header[SEQNO_MAX] << std::endl
<< "Ordered buffers : " << (header[SEQNO_MAX] - header[SEQNO_MIN]) << std::endl
<< "------
strncpy (preamble, pstream. str().c_ str(), PREAMBLE_LEN - 1);
preamble[ PREAMBLE_ LEN - 1] = '\0';
which is unused, probably can be used to dump to log.