File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,13 @@ int main(int argc, char* argv[]) {
117117 CHECK (db) << " No database instance created, check flag settings" ;
118118
119119 shared_ptr<libevent::Base> event_base (make_shared<libevent::Base>());
120- ThreadPool internal_pool (8 );
120+
121+ // We need to create internal pool with at least double of http server threads,
122+ // in order to avoid thread starvation. The issue occurs when all threads from
123+ // internal pool are processing add-chain request, as during processing
124+ // additional thread from internal pool is needed for each request for adding
125+ // pending entry to etcd server.
126+ ThreadPool internal_pool (FLAGS_num_http_server_threads * 2 );
121127 UrlFetcher url_fetcher (event_base.get (), &internal_pool);
122128
123129 const bool stand_alone_mode (cert_trans::IsStandalone (true ));
You can’t perform that action at this time.
0 commit comments