Преглед изворни кода

sets up commands to replicate the same behaviour that the local in-memory tests did

tristangurtler пре 3 година
родитељ
комит
494c838700
3 измењених фајлова са 21 додато и 0 уклоњено
  1. 3 0
      prsona/cfg/clientIPs.cfg
  2. 16 0
      prsona/cfg/commands.cfg
  3. 2 0
      prsona/src/orchestratorMain.cpp

+ 3 - 0
prsona/cfg/clientIPs.cfg

@@ -1,2 +1,5 @@
 127.0.0.1:8082
 127.0.0.1:8083
+127.0.0.1:8084
+127.0.0.1:8085
+127.0.0.1:8086

+ 16 - 0
prsona/cfg/commands.cfg

@@ -1,3 +1,19 @@
 V 127.0.0.1:8082
+V 127.0.0.1:8083
+V 127.0.0.1:8084
+V 127.0.0.1:8085
+V 127.0.0.1:8086
+E
+V 127.0.0.1:8082
+V 127.0.0.1:8083
+V 127.0.0.1:8084
+V 127.0.0.1:8085
+V 127.0.0.1:8086
+E
+V 127.0.0.1:8082
+V 127.0.0.1:8083
+V 127.0.0.1:8084
+V 127.0.0.1:8085
+V 127.0.0.1:8086
 E
 R 127.0.0.1:8083 127.0.0.1:8082

+ 2 - 0
prsona/src/orchestratorMain.cpp

@@ -295,6 +295,8 @@ void execute_experiment(string dealer, int dealerPort)
 
         line++;
     }
+
+    wait_for_servers_ready(dealer, dealerPort);
 }
 
 int main(int argc, char* argv[])