]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: reuse CURL* for keystone. 20635/head
authorMarcus Watts <mwatts@redhat.com>
Tue, 27 Feb 2018 07:53:37 +0000 (02:53 -0500)
committerMarcus Watts <mwatts@redhat.com>
Wed, 28 Feb 2018 05:25:38 +0000 (00:25 -0500)
commit0c5cee1977eac232045571f4850e64be93271aec
tree336910b553a4da1552e44bdca9ed3f4536ba4328
parentcb12e1afd5beedf1b8c0b85e24e412e34c2fc427
rgw: reuse CURL* for keystone.

When using keystone with https (the recommended setting),
it is inefficient to start up a new SSL connection for
each and every operation.  Keeping a CURL* structure around
should reduce the cost of doing this.  This logic tries
to do so, but it also tries to free them fairly aggressively
(5-10 seconds).  This should still greatly reduce load on
keystone at peak times while not tying up excess resources.

Fixes: https://tracker.ceph.com/issues/23162
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_common.h
src/rgw/rgw_http_client.cc
src/rgw/rgw_main.cc