From e7d27133274091b52ff5bf68fa5dc575eca33349 Mon Sep 17 00:00:00 2001 From: Bin Qian Date: Wed, 8 Aug 2018 15:14:36 -0400 Subject: [PATCH] Unexpected swact after rebooting standby controller In All-in-one duplex system, 2 controllers sometimes require longer than expected (2500ms) to sync the status of the service groups. The fix here is to extend the wait interval to 5000ms in order to give enough time for the controllers to finish serivce groups status exchange. The extra wait time impacts only the 1st controller reboot. In a normal scenario, the 2nd controller boots up the service scheduling will start immediately after the service group status exchange completed. Story: 2003287 Task: 24230 Change-Id: Ibc49df8278ec0a0b319691ae9e82e9318a35a2f6 Signed-off-by: Bin Qian --- service-mgmt/sm-db-1.0.0/database/create_sm_db.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql b/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql index a396d0f3..81e7d824 100644 --- a/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql +++ b/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql @@ -7,7 +7,7 @@ INSERT INTO "SERVICE_DOMAIN_INTERFACES" VALUES(1,'yes','controller','management- INSERT INTO "SERVICE_DOMAIN_INTERFACES" VALUES(2,'yes','controller','oam-interface','secondary','hmac-sha512','titanium-server','','','','','','','','','','','tor'); INSERT INTO "SERVICE_DOMAIN_INTERFACES" VALUES(3,'yes','controller','infrastructure-interface','secondary','none','','','','','','','','','','','','tor'); CREATE TABLE SERVICE_DOMAINS ( ID INTEGER PRIMARY KEY AUTOINCREMENT, PROVISIONED CHAR(32), NAME CHAR(32), ORCHESTRATION CHAR(32), DESIGNATION CHAR(32), PREEMPT CHAR(32), PRIORITY INT, HELLO_INTERVAL INT, DEAD_INTERVAL INT, WAIT_INTERVAL INT, EXCHANGE_INTERVAL INT, STATE CHAR(32), SPLIT_BRAIN_RECOVERY CHAR(32), LEADER CHAR(32), GENERATION INT); -INSERT INTO "SERVICE_DOMAINS" VALUES(1,'yes','controller','regional','unknown','no',230,200,800,2500,2000,'initial','select-best-active','',1); +INSERT INTO "SERVICE_DOMAINS" VALUES(1,'yes','controller','regional','unknown','no',230,200,800,5000,2000,'initial','select-best-active','',1); CREATE TABLE SERVICE_DOMAIN_MEMBERS ( ID INTEGER PRIMARY KEY AUTOINCREMENT, PROVISIONED CHAR(32), NAME CHAR(32), SERVICE_GROUP_NAME CHAR(32), REDUNDANCY_MODEL CHAR(32), N_ACTIVE INT, M_STANDBY INT, SERVICE_GROUP_AGGREGATE CHAR(32), ACTIVE_ONLY_IF_ACTIVE CHAR(32) ); INSERT INTO "SERVICE_DOMAIN_MEMBERS" VALUES(1,'yes','controller','oam-services','N + M',1,1,'controller-aggregate','directory-services'); INSERT INTO "SERVICE_DOMAIN_MEMBERS" VALUES(2,'yes','controller','controller-services','N + M',1,1,'controller-aggregate','directory-services');