Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1234

Data transfer during restore takes 2.4x longer with TLS enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • core-library
    • 1

    Description

      I'm opening this ticket following on from MB-50615 in which we see a significant performance decrease in cbbackupmgr restore when TLS is enabled.

      When we look at the cbbackupmgr logs we see that the KV Data Transfer phase (which AFAIK is a lot of SetWithMeta calls performed using gocbcore) takes ~2.4x longer when TLS is enabled:

      Restore logs

      # No TLS
      2022-01-27T11:28:16.498+00:00 (Plan) (Data) Successfully transferred key value data for bucket 'bucket-1' | {"number":10,"duration":"4m36.385734598s","stats":{"total_items":100000000,"total_vbuckets":1024,"vbuckets_complete":1024,"bytes_received":33431551078,"snapshot_markers_received":1024,"failover_logs_received":1024,"mutations_received":100000000,"started_at":1643282621179854539,"finished_at":1643282896497846864,"complete":true}}
       
      # TLS
      2022-01-27T02:31:40.682+00:00 (Plan) (Data) Successfully transferred key value data for bucket 'bucket-1' | {"number":10,"duration":"10m58.62433602s","stats":{"total_items":100000000,"total_vbuckets":1024,"vbuckets_complete":1024,"bytes_received":33431281009,"snapshot_markers_received":1024,"failover_logs_received":1024,"mutations_received":100000000,"started_at":1643250042976146303,"finished_at":1643250700682204667,"complete":true}}
      

      We do of course expect some overhead for enabling TLS, the question is whether this much of a slowdown is reasonable.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              charles.dixon Charles Dixon
              Daniel.nagy Daniel Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty