]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: reuse CURL* for keystone.
authorMarcus Watts <mwatts@redhat.com>
Tue, 27 Feb 2018 07:53:37 +0000 (02:53 -0500)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 5 Mar 2018 16:14:12 +0000 (17:14 +0100)
commit8e0a3484539315575b0476a1875868cf2cd95efd
treeebcc3a54c73f98a68d26f7bb5e7f1a8602b2a6cb
parent6c222d3ddc079248301582a09fcea09f27d01a48
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>
(cherry picked from commit 0c5cee1977eac232045571f4850e64be93271aec)

 Conflicts:
  src/rgw/rgw_common.h
  trivial conflict as lowercase_dash_http_attr isnt a part of L
src/rgw/rgw_common.h
src/rgw/rgw_http_client.cc
src/rgw/rgw_main.cc