RethinkDB Load Balancing

Do you use RethinkDB? Do you have a cluster set up? Do you want to stop crushing a random cluster node with database connections? Do you wish someone had written some simple steps on “Hey, how can I set up an ELB on AWS to load balance my client connections to my RethinkDB cluster”? Wonder no more!

Setting up a load balancer for your Rethink cluster is pretty straightforward - here’s how to set it up on Amazon Web Services. These instructions assume the use of the AWS Console, but the same principle applies to the API (or Ansible, or Terraform, or whatever).

Now, you can access your RethinkDB cluster through the Amazon ELB and balance incoming database connections, thus spreading out the load on your servers.