Open TTitcombe opened 4 years ago
This would be great to have and would help with testing also. I think the approach should be to create some generic python functions.
Then to create some custom config you could define your own python script, that initialises the controllers and calls the helper functions on them as necessary.
Might need some more thought, but that is the approach I would be thinking about.
Description
The current
docker-compose/manage/create_connection.py
setup spins-up two agents. We should generalise this process so that any number of agents can be created and connected with each other. To add a new agent manually requires duplicating the code N times, which doesn't scale easily for large environments and is prone to mistakes.A sandbox controller should have to define ports for each agent, but inter-agent connections (
create_connection.py
) should be automated. Automating the process indocker-compose
would be great as well, if possibleAre you interested in working on this improvement yourself?
Yes, I am.
Additional Context
This is necessary for the PryVote sandbox, in which we may need a minimum of six agents (3 vote counters and at least 3 voters)