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

Add settings for the hash table of the load balancer session states in dataplane.conf #93

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

saushew
Copy link
Collaborator

@saushew saushew commented Jan 17, 2024

Adding two new parameters to the dataplane.conf's configValues section:
balancer_state_ttl: session lifetime in the table after passing the last network packet;
balancer_state_ht_size: size of the sessions hash table; the value must be a power of 2 and at least 16.

@saushew saushew requested a review from taitov as a code owner January 17, 2024 15:38
@saushew
Copy link
Collaborator Author

saushew commented Jan 17, 2024

Fixes issue #90

@saushew saushew force-pushed the balancer-state-config branch from b34d391 to 66b4403 Compare January 17, 2024 16:29
@@ -7,7 +7,6 @@
#include <unistd.h>

#include <fstream>
#include <iostream>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -1,7 +1,5 @@
#include <memory.h>

#include <string>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -2,7 +2,6 @@
#include <netinet/ip_icmp.h>

#include <string>
#include <thread>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -6,7 +6,6 @@
#include "common/counters.h"
#include "common/fallback.h"

#include "controlplane.h"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@@ -1,6 +1,5 @@
#pragma once

#include <list>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

@saushew saushew force-pushed the balancer-state-config branch from 66b4403 to 7f03734 Compare January 17, 2024 16:46
@saushew saushew merged commit 45366f5 into main Jan 23, 2024
9 checks passed
@saushew saushew deleted the balancer-state-config branch January 23, 2024 15:12
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.

2 participants