da3fd7dcb6
To be able test examples in different envs nodes can not be created in examples. Now before running an example nodes should be created manually. For fuel-devops nodes will be created automaticly in run.sh script |
||
---|---|---|
.. | ||
haproxy_riak_config.yaml | ||
README.md | ||
riak_cluster.yaml | ||
riak_service.yaml | ||
riaks_big.py | ||
riaks-template.py | ||
riaks.py |
Example of 3 node riak cluster.
At first run:
python solar-resources/examples/riak/riaks.py deploy
It will prepare riak nodes etc.
Then you can continue with standard solar things:
solar changes stage -d
solar changes process
solar orch run-once last
watch -n 1 solar orch report last
Wait until all actions have state SUCCESS
After that you can add HAProxy on each node:
python solar-resources/examples/riak/riaks.py add_haproxies
Then again normal solar stuff
solar changes stage -d
solar changes process
solar orch run-once last
watch -n 1 solar orch report last
Wait until all actions have state SUCCESS
After that you have basic 3 node riak cluster running.
You can also modify riak http port by:
solar resource update riak_service1 riak_port_http=18100
And then again standard stuff:
solar changes stage -d
solar changes process
solar orch run-once last
watch -n 1 solar orch report last