Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 907992 Details for
Bug 1078361
Implement dynamic token timeout and make it default
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Add token_coefficient option
tmp.BomAoTwISj (text/plain), 3.49 KB, created by
Jan Friesse
on 2014-06-12 07:39:59 UTC
(
hide
)
Description:
Add token_coefficient option
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2014-06-12 07:39:59 UTC
Size:
3.49 KB
patch
obsolete
>From 58176d6779a0f5ff23dabf61dff7544db29af25a Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Fri, 21 Mar 2014 18:14:10 +0100 >Subject: [PATCH] Add token_coefficient option > >Token coefficient is used only when nodelist is specified and contains >at least 3 nodes. If so, real token timeout is then computed as >token + (number_of_nodes - 2) * token_coefficient. This allows cluster >to scale without manually changing token timeout every time new >node is added. This value can be set to 0 resulting in effective >removal of this feature. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >Reviewed-by: Christine Caulfield <ccaulfie@redhat.com> >--- > exec/coroparse.c | 1 + > exec/totemconfig.c | 8 ++++++++ > man/corosync.conf.5 | 12 ++++++++++++ > 3 files changed, 21 insertions(+), 0 deletions(-) > >diff --git a/exec/coroparse.c b/exec/coroparse.c >index 425e5d6..6b883b5 100644 >--- a/exec/coroparse.c >+++ b/exec/coroparse.c >@@ -541,6 +541,7 @@ static int main_config_parser_cb(const char *path, > (strcmp(path, "totem.nodeid") == 0) || > (strcmp(path, "totem.threads") == 0) || > (strcmp(path, "totem.token") == 0) || >+ (strcmp(path, "totem.token_coefficient") == 0) || > (strcmp(path, "totem.token_retransmit") == 0) || > (strcmp(path, "totem.hold") == 0) || > (strcmp(path, "totem.token_retransmits_before_loss_const") == 0) || >diff --git a/exec/totemconfig.c b/exec/totemconfig.c >index baca413..4aa8cc5 100644 >--- a/exec/totemconfig.c >+++ b/exec/totemconfig.c >@@ -62,6 +62,7 @@ > > #define TOKEN_RETRANSMITS_BEFORE_LOSS_CONST 4 > #define TOKEN_TIMEOUT 1000 >+#define TOKEN_COEFFICIENT 650 > #define JOIN_TIMEOUT 50 > #define MERGE_TIMEOUT 200 > #define DOWNCHECK_TIMEOUT 1000 >@@ -157,12 +158,19 @@ static void totem_volatile_config_set_value (struct totem_config *totem_config, > */ > static void totem_volatile_config_read (struct totem_config *totem_config, const char *deleted_key) > { >+ uint32_t u32; > > totem_volatile_config_set_value(totem_config, "totem.token_retransmits_before_loss_const", deleted_key, > TOKEN_RETRANSMITS_BEFORE_LOSS_CONST, 0); > > totem_volatile_config_set_value(totem_config, "totem.token", deleted_key, TOKEN_TIMEOUT, 0); > >+ if (totem_config->interface_count > 0 && totem_config->interfaces[0].member_count > 2) { >+ u32 = TOKEN_COEFFICIENT; >+ icmap_get_uint32("totem.token_coefficient", &u32); >+ totem_config->token_timeout += (totem_config->interfaces[0].member_count - 2) * u32; >+ } >+ > totem_volatile_config_set_value(totem_config, "totem.max_network_delay", deleted_key, MAX_NETWORK_DELAY, 0); > > totem_volatile_config_set_value(totem_config, "totem.window_size", deleted_key, WINDOW_SIZE, 0); >diff --git a/man/corosync.conf.5 b/man/corosync.conf.5 >index 5d16152..ff36c83 100644 >--- a/man/corosync.conf.5 >+++ b/man/corosync.conf.5 >@@ -300,6 +300,18 @@ milliseconds in addition to this timeout. > The default is 1000 milliseconds. > > .TP >+token_coefficient >+This value is used only when >+.B nodelist >+section is specified and contains at least 3 nodes. If so, real token timeout >+is then computed as token + (number_of_nodes - 2) * token_coefficient. >+This allows cluster to scale without manually changing token timeout >+every time new node is added. This value can be set to 0 resulting >+in effective removal of this feature. >+ >+The default is 650 milliseconds. >+ >+.TP > token_retransmit > This timeout specifies in milliseconds after how long before receiving a token > the token is retransmitted. This will be automatically calculated if token >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1078361
:
907987
|
907988
|
907989
|
907990
|
907991
| 907992 |
907993
|
946428
|
946429
|
946430