Arquitectura de Couchbase

Summer Project 2016: The CouchCase

Lectura de 2 minutos

I know that Summer 2016 is long gone, but I promised one more blog post about building the CouchCase. This part was the easiest, since clustering Servidor Couchbase nodes together is really easy.

Networking

First, a little information about how I networked the Intel Compute Sticks. On the router in the CouchCase, I’ve pegged each network adapter to a specific IP address. How to do this is going to vary from router to router, so consult your manual.

Here’s a snapshot of STICK1, STICK2, and STICK3 all pegged to three IP addresses and attached to the router.

Compute sticks running Couchbase Server attached to a router

Clustering

The first time you setup Couchbase Server, you are creating a cluster with a single node. So, if you’ve done this, as far as setting up an entire cluster, you are most of the way there.

Next, install Couchbase Server on another machine (or VM or whatever). Instead of selecting “Start a new Cluster”, select “Join a cluster now”. Enter the IP address of the first node you created, as well as the username/password information that you set it to be.

Join a Couchbase node to a Couchbase cluster

s Once you do that, you should get a message saying “This server has been associated with the cluster and will join on the next rebalance operation.”

A Couchbase node has been successfully joined to a Couchbase cluster

A rebalance operation is necessary for Couchbase to figure out all the details of which node a given document should live on. For more information, check out the documentation on Rebalancing a Cluster.

A rebalance is a background operation, and should not interfere with the operation of nodes that are already working. This means that if you need to add capacity to your database, you don’t have to take down your website or schedule a ‘maintenence window’ or anything like that.

Once the rebalance is complete, you should see a list of nodes:

List of nodes in a Couchbase cluster

CouchCase is going on the road

There are a few finishing cosmetic touches, but CouchCase is ready to go on the road. In fact, look for it at the upcoming CodeMash conference in January 2017: “Are You Ready for Chaos? Horizontal Scaling in a Briefcase”. If you have any questions or suggestions, I’d love to hear from you. I’m on Twitter as @mgroves.

Compartir este artículo

Autor

Matthew D. Groves es un tipo al que le encanta programar. No importa si se trata de C#, jQuery o PHP: envía solicitudes de incorporación de cambios para cualquier cosa. Se ha dedicado profesionalmente a la programación desde que escribió una aplicación de punto de venta en QuickBASIC para la pizzería de sus papás allá por los años 90. Actualmente trabaja como gerente sénior de mercadotecnia de productos en Couchbase. Dedica su tiempo libre a su familia, a ver a los Reds y a participar en la comunidad de desarrolladores. Es autor de *AOP in .NET* y *Pro Microservices in .NET*, colaborador de Pluralsight y MVP de Microsoft.

Una respuesta

  1. […] session was partly a demonstration of the CouchCase project that I worked on in the summer, but also a demonstration of the CAP Theorum and Couchbase in […]

Deja un comentario

¿Listo para comenzar con Couchbase Capella?

Comenzar a construir

Visita nuestro portal para desarrolladores para explorar NoSQL, consultar recursos y comenzar con los tutoriales.

Usa Capella gratis

Empieza a usar Couchbase en tan solo unos clics. Capella DBaaS es la forma más fácil y rápida de comenzar.

Ponte en contacto

¿Quieres saber más sobre las ofertas de Couchbase? Permítenos ayudarte.