# How to setup PROD grade APM server

**URL:** <https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391>\
**Category:** APM\
**Tags:** server\
**Created:** [January 24, 2020, 8:56am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391 "2020-01-24T08:56:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_medam/32/45015_2.png) [@Karthik\_Medam](https://discuss.elastic.co/u/Karthik_Medam)\
**Post date:** [January 24, 2020, 8:56am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/1 "2020-01-24T08:56:11Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** :  
6.6.1  
**Elasticsearch version** :  
6.6.1  
**APM Server version** :  
6.6.1  
**APM Agent language and version** :  
1.6.1  
**Browser version** :  
NA  
**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
NA  
**Fresh install or upgraded from other version?**  
Yes  
**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
We have kafka and load balancers been used  
**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
Could you please help in setting up PROD grade APM server, with architecture.  
**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)**:  
NA

**Provide logs and/or server output (if relevant)**:  
NA

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [January 24, 2020, 9:35am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/2 "2020-01-24T09:35:22Z")

</div>

Hello there!

The fastest way to get up and running with Elastic APM is with Elastic Cloud. Just follow steps here: [https://www.elastic.co/products/apm](https://www.elastic.co/products/apm) (you have a free trial).

Otherwise, if you want to manage it yourself, you hopefully can find [https://www.elastic.co/guide/en/apm/server/current/setting-up-and-running.html](https://www.elastic.co/guide/en/apm/server/current/setting-up-and-running.html) useful.

I can't unfortunately make a broad recommendation because it all depends on your architecture (Docker, Kubenertes, etc), requirements and budget. If you get stuck somewhere or you have some more specific questions, feel free to reach out. Generally thou, the default settings should be good for many production environments.

I hope this helps!

/Juan

---

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_medam/32/45015_2.png) [@Karthik\_Medam](https://discuss.elastic.co/u/Karthik_Medam)\
**Post date:** [January 24, 2020, 1:09pm UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/3 "2020-01-24T13:09:20Z")

</div>

We are setting up using yum in Redhat. Need to understand the cluster level, how do we configure the apm-server cluster and create loadbalancer. Any doc reference which explains the same is much appreciated  
.

---

<div class="post-metadata">

**Author:** ![xeraa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xeraa/32/48181_2.png) [@xeraa](https://discuss.elastic.co/u/xeraa)\
**Post date:** [January 25, 2020, 11:35am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/4 "2020-01-25T11:35:14Z")

</div>

You don't really need a load balancer since the APM agent can do that . Here's the relevant part from the [Java client and it's `server_urls` setting](https://www.elastic.co/guide/en/apm/agent/java/current/config-reporter.html#config-server-urls):

> Fails over to the next APM Server URL in the event of connection errors. Achieves load-balancing by shuffling the list of configured URLs. When multiple agents are active, they’ll tend towards spreading evenly across the set of servers due to randomization.

Otherwise the questions is rather broad. The relevant sections from the docs are probably for the [configuration](https://www.elastic.co/guide/en/apm/server/7.5/configuring-howto-apm-server.html) and [monitoring](https://www.elastic.co/guide/en/apm/server/7.5/monitoring.html).

IMO the configuration of Elasticsearch will be the more interesting part than the APM server, but for that you can follow any recommendations for time based indices like logs or metrics.

---

<div class="post-metadata">

**Author:** ![jalvz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jalvz/32/45613_2.png) [@jalvz](https://discuss.elastic.co/u/jalvz)\
**Post date:** [January 27, 2020, 9:49am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/5 "2020-01-27T09:49:46Z")

</div>

It is also worth clarifying that APM Server instances are stateless, they don't talk to each other.  
So there isn't anything special you need to do in order to have 1 instance, 2, or 100.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 17, 2020, 6:04am UTC](https://discuss.elastic.co/t/how-to-setup-prod-grade-apm-server/216391/6 "2020-02-17T06:04:57Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
