Project for IO 2021
- Run rabbitmq
docker-compose up
Rabbitmq is available on localhost:15762
.
- Create queues using command
cd utils
python prepare_queues_2.py
It creates queues based on configurations file
algorithm/configurations/algorithm_configuration.json
.
You can also change that file (I will update instructions soon):
- Run islands. In e.g. 3 (
number_of_islands
parameter in configuration json file) terminals run commands:
#(if number_of_islands == 2 then island = 0 or 1 or 2)
python run_algorithm.py <island>
- Add information, from which island and which epoque comes migrant.
- Add more configuration json files to match different topologies (star, ring, mesh).
- Test for e.g. 10 islands
- Add script for running multiple islands automatically.
- Do some viusualisation on function Rastrigin 2-dim to show solutions and indicate migrants with different color.
Old ones:
-
Add creating queues using docker-compose. I tried to do that in
utils/prepare_queues.py
andutils/Dockerfile_prepare_queues
but after adding service in docker-compose container exits. We should wait for rabbitmq being available. -
Run islands from docker-compose as well as creating queues.