瀏覽代碼

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:8082
 127.0.0.1:8083
 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: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
 E
 R 127.0.0.1:8083 127.0.0.1:8082
 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++;
         line++;
     }
     }
+
+    wait_for_servers_ready(dealer, dealerPort);
 }
 }
 
 
 int main(int argc, char* argv[])
 int main(int argc, char* argv[])