public int getMetricsServiceThreadPoolMaxSize() {
    return Integer.parseInt(getProperty(METRIC_RETRIEVAL_SERVICE_THREADPOOL_MAX_SIZE));
  }
Gets the max pool size used for the {@link MetricsRetrievalService}.
Threads will only be increased up to this value of the worker queue is
exhausted and rejects the new task.
@see #getMetricsServiceWorkerQueueSize()
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java