Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPVS SNMP fixes, improvements and enhancements #2409

Merged
merged 24 commits into from Apr 28, 2024

Conversation

pqarmitage
Copy link
Collaborator

No description provided.

The timer for updating VS and RS stats for SNMP was hard coded to
5 seconds. This commit still deffaults to 5 seconds but allows the
timer to be configured.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
We need to use our wrappers around malloc/free calls, so it now
just calls MALLOC().

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
This compliments snmp_vs_stats_update_interval, and also real server
stats are now only fetched from the kernel when there is an SNMP
request for them; i.e. VS stats and RS stats are updated separately.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
This allows proper type checking by the compiler.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
This code is probably never used, since netlink is now used in
preference to the old socket interface, and the socket interface is
only used if netlink fails, which should neveer be the case.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
The long_ret variable was being set but the address of the
counter64_ret variable was being return for the low 32 bits of
the stats counters.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
For most 64 bit counter stats, the only way of reading them was
to read the high and low 32 bits seperately.

This commit adds 64 bit counters for this stats, so they can be
read with only one snmp get.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
This reduces the memory usage of keepalived

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
The net-snmp code does this in header_simple_table(), so we should
do so when using a non-simple table.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
@pqarmitage pqarmitage merged commit 722a9b0 into acassen:master Apr 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant