How to: Three Riak Linux nodes on VMware

How to: Three Riak Linux nodes on VMware

This is a super-short guide for setting up Linux on VMware on Windows.
  1. Create 3 Linux machines. Let them use the virtual network with NAT capabilities.
  2. Install Riak and configure the IP number in app.config + vm.config
  3. They can all three have PCB port numbers = 8087 (default) and http port number = 8098 (default).
  4. Make sure the Linux machines get a static IP. Riak demands to have the same IP every time the machine boots up. Make sure you have the correct default gateway and the correct name server.
  5. Start Riak on all three of them.
  6. Use the riak join command to set up the cluster.
  7. Set up port forwarding in VMware like this.
    • 8098 -> IP for Linux1 port 8098
    • 8096 -> IP for Linux2 8098
    • 8094 -> IP for Linux3 8098
    • 8087 -> IP for Linux1 8087
    • 8085 -> IP for Linux2 8087
    • 8083 -> IP for Linux3 8087
    This setup makes it possible to access all three Riak nodes via the IP for the Windows host.
  8. Make sure the Windows firewall is turned off, or better, lets traffic through on ports 8098, 8096, 8094, 8087, 8087, 8083
  9. Verify via the http API that all three nodes are up and accessible.
  10. Start Unity, create a new scene and add a new empty game object. Add the uGameDBMultiNodeConnection script to set up 3 pools, one for each node. Use the same IP for all pools (the IP of the Windows server) and use the three PCB ports 8087, 8085, 8083.
Now, start play mode and run some tests.