Increase Hermes concurrency
@@ -8,6 +8,7 @@ import time
from appscale.common import appscale_info
from tornado import gen, httpclient
from tornado.options import options
+from tornado.simple_httpclient import SimpleAsyncHTTPClient
from appscale.hermes import constants
from appscale.hermes.constants import SECRET_HEADER
@@ -17,6 +18,9 @@ from appscale.hermes.stats.producers import (
proxy_stats, node_stats, process_stats, rabbitmq_stats
)
+# Allow tornado to fetch up to 100 concurrent requests
+httpclient.AsyncHTTPClient.configure(SimpleAsyncHTTPClient, max_clients=100)
+
class BadStatsListFormat(ValueError):
""" Is used when Hermes slave responds with improperly formatted stats. """
