Original install method (e.g. download page, yum, deb, from source, etc.) and version: deb
Fresh install or upgraded from other version?: Fresh install
Is there anything special in your setup? Apache proxy frontend
I'm trying to configure an Apache proxy in front of my APM server to filter IP addresses which are allowed to connect to my APM server and add authentication.
With the Java agent, and simple Apache ProxyPass/ProxyPassReverse configuration, I always get 408 proxy timeout errors (which I don't get while using the Python agent, or when connecting directly to APM server).
I tried to increase ProxyTimeout but this doesn't seems to work!
So which Apache configuration should I use to be able to use Java agent this way?
Best regards,
Thierry
Unlike the Python agent, the Java agent uses chunked-encoding to stream the tracing data to the APM Server. By default, it keeps the HTTP request open for 10 seconds. This interval is configurable via api_request_time.
That means that your proxy has to have a timeout which is higher than 10 seconds. You should also set the proxy-sendchunked flag, so that Apache does not buffer the chunks but directly sends them to the APM Server. This is not strictly required but recommended for efficiency.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.