We're adding ES, but I can't see anything that specifies how to point all the nodes in the cluster, in the db.xml file, as the examples only have a single ip in them e.g.
<DBServer>10.11.51.58</DBServer>
Apart from I see on the Configuring multiple Elasticsearch cluster page for the DBConfiguration.xml that overrides the DB.xml, showing
<Hosts>10.11.1.44,10.11.2.44,10.11.3.44</Hosts>
But that's using a Hosts tag instead of the DBServer tag.
So can the same be done in the DBServers tags in the DB.xml, listing all the servers in the ES cluster, separated with commas?
Or we have to use the DBConfiguration.xml file to specify all the nodes in the Hosts tags?
Or we need to put a load balancer in from of the ES cluster?
Yes, simply define in the db.xml of each agent the hosts of the ES cluster seperated by commas.
<DBServer>10.10.10.1,10.10.10.2,10.10.10.3</DBServer>
DBConfiguration.xml file only comes into play when you are configuring multiple ES Clusters. There the <Hosts> tag are the equivalent of the <DBserver> tag in db.xml.
Thanks Wale, I thought that was the case, but it’s not clearly documented anywhere.