0

I have setup the Elasticsearch Certified by Bitnami on GCP Which I would link to put behind the HTTP(S) Load Balancing on GCP for auto scaling propose. What I have done is create snapshot and use it to create image for instance template. But the Instance group continuous return "instance in being verified" and "Recreated instance" for long time do I don't know where the problem is so I design to use the default instance template from GCP instead.

My question is, when the new node created of when the data in elasticsearch updated how can I sync data between node in the GCP load balancer? Think about when there is high traffic and load balancer created the new coming node, and when the query come in from load balance how the new node have the exactly same data with the existing node or when the new index come in, all the node get the new index.

PS I dont mind for the delay if it less than 5 mins it is acceptable.

Thanks in advance for helping out.

giotto
  • 85
  • 1
  • 1
  • 8

1 Answers1

0

In GCP, if you want to sync your data between nodes, we recommend using a centralized location to store your data. You can use Cloud Storage, Cloud SQL, Cloud File System etc. You can check this link to find more options for the data storage. Then you can create an instance template that specifies that when any instance is created it will use the custom image and has access to that centralized database. This is a recommended workaround rather than replicate new instances with data. You can find this link for the similar kind of thread.

For your Elasticsearch setup, I'll recommend deploying an Elasticsearch Cluster that provides multiple VMs that you can customize the configuration. If deploying cluster, this other Stackoverflow post suggest that is not not necessary to use a load balancer as Elasticsearch handles the load between the nodes.

Marilu
  • 372
  • 1
  • 4
  • 11
shamma
  • 151
  • 9
  • So, from my understanding. I need to recreate the instance template every time the new data entry / update then use the template to create new node. Is that correct? – giotto Nov 26 '18 at 05:38
  • I have edited my answer, you can use Elasticsearch Cluster. – shamma Nov 26 '18 at 21:14