# Fine tune APM server settings on the hosted solution (cloud.elastic.co)

**URL:** https://discuss.elastic.co/t/fine-tune-apm-server-settings-on-the-hosted-solution-cloud-elastic-co/179811
**Category:** APM
**Tags:** server
**Created:** [May 6, 2019, 4:02pm UTC](https://discuss.elastic.co/t/fine-tune-apm-server-settings-on-the-hosted-solution-cloud-elastic-co/179811 "2019-05-06T16:02:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HRK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hrk/32/45646_2.png) [@HRK](https://discuss.elastic.co/u/HRK)
#### Post date: [May 6, 2019, 4:02pm UTC](https://discuss.elastic.co/t/fine-tune-apm-server-settings-on-the-hosted-solution-cloud-elastic-co/179811/1 "2019-05-06T16:02:53Z")

</div>

**Kibana version** :  
6.6.2

**Elasticsearch version** :  
6.6.2

**APM Server version** :  
6.6.2

**APM Agent language and version** :  
Ruby: 2.6.1

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

APM and Elasticsearch are under the managed offering ([cloud.elastic.co](http://cloud.elastic.co)), we chose GCP for the underlying hosting.

**Fresh install or upgraded from other version?**

Fresh install

**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.

Nothing special

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

How can we change the APM server settings when installed through the [cloud.elastic.co](http://cloud.elastic.co) hosted solution ?

To get into the details:

We have bursts of heavy requests comming to our ruby servers. To handle them correctly we increased by 2 the number of APM workers, but now the server is responding with a "queue is full" error.  
Full error message:  
'[ElasticAPM] APM Server responded with an error: "queue is full"'

The solution that seems the most fitting would be to increase the server's queue capacity (queue.mem.events setting) as described here:

> [@503 return codes in APM](https://discuss.elastic.co/t/503-return-codes-in-apm/174418):
>
> Description of the problem including expected versus actual behavior. Please include screenshots (if relevant): We've started getting 503 return codes in our APM application. The application is written in Node.js. Here the error messages we're seeing. Elastic APM HTTP error (503): queue is full: queue is full Elastic APM HTTP error (503): timeout waiting to be processed These errors occur about 20 times over the course of a day. Kibana version: 6.6.1 Elasticsearch version: 6.6.1 APM Ser…

Or eventualy increase "output.elasticsearch.bulk\_max\_size" as described in this thread:

> <https://github.com/elastic/apm-agent-ruby/issues/237>
>
> \[ElasticAPM\] Queue is full (256 items), skipping…
> What this means? Why it happe…ns? 
> 
> 0 new records into index since update version.
> 
> \---
> 
> Update by @mikker: See \[this comment\](https://github.com/elastic/apm-agent-ruby/issues/237#issuecomment-481738046) for possible settings to tweak. I'm working on a docs page describing possible remedies to full queues.

Looking through the documentation I couldn't figure where these parameters can be changed when the install is done through the hosted solution.  
Is there a way to apply custom settings ?

Cheers

---

<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: [May 9, 2019, 10:13am UTC](https://discuss.elastic.co/t/fine-tune-apm-server-settings-on-the-hosted-solution-cloud-elastic-co/179811/2 "2019-05-09T10:13:09Z")

</div>

Hello,

You are right, currently there is no way to change those settings on Cloud sorry for that.  
We are currently working to make them available so you can change them, stay tuned!

Juan

---

<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: [May 30, 2019, 6:13am UTC](https://discuss.elastic.co/t/fine-tune-apm-server-settings-on-the-hosted-solution-cloud-elastic-co/179811/3 "2019-05-30T06:13:10Z")

</div>

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