Skip to content

Commit

Permalink
complete example
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Mar 11, 2024
1 parent 52e4b88 commit 58a5e11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
3 changes: 2 additions & 1 deletion examples/async-simulation/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fire==0.3.1
fire==0.3.1
numpy
1 change: 0 additions & 1 deletion examples/load-test/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ data
*.npz
*.tgz
*.tar.gz
.async-simulation
client.yaml
15 changes: 0 additions & 15 deletions examples/load-test/docker-compose.override.yaml

This file was deleted.

7 changes: 3 additions & 4 deletions examples/load-test/run_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

DISCOVER_HOST = '127.0.0.1'
DISCOVER_PORT = 8092
N_CLIENTS = 5
CLIENTS_AVAILABLE_TIME = 120
N_CLIENTS = 3

config = {'discover_host': DISCOVER_HOST, 'discover_port': DISCOVER_PORT, 'token': None, 'name': 'testclient',
'client_id': 1, 'remote_compute_context': True, 'force_ssl': False, 'dry_run': False, 'secure': False,
Expand Down Expand Up @@ -53,7 +52,7 @@
while not client.session_is_finished(session_config_fedavg['session_id']):
time.sleep(1)

# Disconnect clients
time.sleep(CLIENTS_AVAILABLE_TIME)
print("Session ID: ", session_config_fedavg['session_id'])

for client in clients:
client.detach()

0 comments on commit 58a5e11

Please sign in to comment.