Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 10-16-2016 10:31 PM - edited on 12-21-2018 03:34 PM by Nina.Wolinsky
The following document enlists the steps to migrate Data from the Controller in-built Events Service (Elastic Search) to a Clustered Events Service, with minimal downtime and no data loss
Assumption
If you are migrating a 4.1 cluster, then first convert the single node
Required tools: curl or equivalent utility (eg. Postman)
Node 1: Controller in-built Events Service
Node 2, 3, 4,.....n: New n node cluster
For 4.1 Setup a cluster manually as described here
For 4.2 use the Platform Admin utility to install a cluster as described here
ad.es.node.minimum_master_nodes
ad.es.event.index.shards
ad.es.event.index.replicas
ad.es.metadata.replicas
ad.es.rolling.maxShardsPerIndex
ad.accountmanager.key.eum
ad.accountmanager.key.controller
ad.accountmanager.key.ops
ad.es.node.unicast.hosts=NODE2:9300,NODE3:9300,...NODEn:9300,NODE1:9300
ad.es.node.master=false
This will create a n node cluster and replicate the data equally onto the nodes of the cluster
http://NODE1:9200/_cat/shards?v
You should see all the shards in the STARTED state
http://NODE1:9200/_cat/indices?v
You should see all the indices in green and open state
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "<NODE1_IPADDRESS>"
}
}'
curl http://localhost:9200/_cat/allocation?v
shards disk.used disk.avail disk.total disk.percent host ip node
0 5.2gb 4.7gb 10gb 52 linux-629i.site 172.16.87.141 NODE1
Here the number of shards for NODE1 should be 0. This would mean that all the data from the NODE1 has been now moved to the other nodes
ad.es.node.unicast.hosts=NODE2:9300,NODE3:9300,....,NODEn:9300
ad.es.node.master=true
http://NODE2:9200/_cat/shards?v
You should see all the shards in the STARTED state
http://NODE2:9200/_cat/indices?v
You should see all the indices in green and open state
Change the following in the EUM's eum.properties file to point to the new cluster. eg:
analytics.serverScheme=http
analytics.serverHost=172.16.87.134
analytics.port=180
Log on to admin.jsp and change the following keys to point to the new cluster. eg:
appdynamics.analytics.local.store.url=http://172.16.87.134:180
appdynamics.analytics.server.store.url=http://172.16.87.134:180
eum.es.host=http://172.16.87.134:180
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form