TI-Tokyo / riak-docs-fork

Riak Products Documentation
http://www.tiot.jp/riak-docs/
Other
4 stars 6 forks source link

Update running-a-cluster.md #228

Closed pjaclark closed 1 year ago

pjaclark commented 1 year ago

Issue #227

@Bob-The-Marauder Something like this?

pjaclark commented 1 year ago

@Bob-The-Marauder Can you check the port numbers?

listener.protobuf.internal = 127.0.0.1:10007
listener.http.internal = 127.0.0.1:10008
handoff.port = 10009
Bob-The-Marauder commented 1 year ago

This is an old script I used to use to configure $i nodes for usage in a cluster

#!/bin/bash
for i in $(jot $1); do mkdir dev$i;
cp -r $(ls | grep -v dev) dev$i;
sed -i "" "s/listener.protobuf.internal = 127.0.0.1:8087/listener.protobuf.internal = 127.0.0.1:100${i}7/g" dev$i/etc/r>sed -i "" "s/listener.http.internal = 127.0.0.1:8098/listener.http.internal = 127.0.0.1:100${i}8/g" dev$i/etc/riak.conf;sed -i "" "s/nodename = riak@127.0.0.1/nodename = dev${i}@127.0.0.1/g" dev$i/etc/riak.conf;
sed -i "" "s/search.solr.port = 8093/search.solr.port = 100${i}4/g" dev$i/etc/riak.conf;
sed -i "" "s/search.solr.jmx_port = 8985/search.solr.jmx_port = 100${i}3/g" dev$i/etc/riak.conf;
echo "handoff.port = 80${i}8" >> dev$i/etc/riak.conf;
sed -i "" "s/intAgentUDPPort, 4000/intAgentUDPPort, 400${i}/g" dev$i/etc/snmp/agent/conf/agent.conf;
sed -i "" "s/{cluster_mgr, {\"127.0.0.1\", 9080 } }/{cluster_mgr, {\"127.0.0.1\", 100${i}0 } }/g" dev$i/etc/advanced.co>done;
Bob-The-Marauder commented 1 year ago

Sorry, it seems like I got a bit ahead of myself there.

Changes to be made:

  1. Make it clear that different ports need to be set for each node e.g. node 1 is 8197 whereas node 2 should be 8297 etc.
  2. Add a line saying that if the handoff manager port isn't in riak.conf, manually add it and set with a unique port.
  3. Add in that cluster manager in advanced.config needs to have its port changed to a unique port.
  4. In the "Running multiple clusters on the same machine" section right at the bottom, it needs to mention that each cluster should have a different riak cookie set otherwise some node interactions can occur with the wrong cluster.
Bob-The-Marauder commented 1 year ago

Advanced.config {cluster_mgr, {"127.0.0.1", 9080 } }, To be changed to a unique port e.g. {cluster_mgr, {"127.0.0.1",10016 } },