dustin oberloh created LIBCLOUD-539:
---------------------------------------

             Summary: Libcloud linode driver is extremely slow due to v6 curl 
call
                 Key: LIBCLOUD-539
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-539
             Project: Libcloud
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.14.0-beta3
         Environment: macOSX
pycharm 2.7.3
            Reporter: dustin oberloh
            Priority: Critical


When I attempt to use the Linode driver. Things like list_nodes and list_images 
are taking FOREVER. From what I understand, curl uses v6 by default if it can. 
So I tried a couple things:

After turning debug on, I tested the vanilla output:
curl -i -X GET -H 'Host: api.linode.com' -H 'X-LC-Request-ID: 4492557272' -H 
'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.1 (Linode) ' 
--compress 
'https://api.linode.com:443/?api_key=xxxxxxxxxxxx&api_responseFormat=json&api_action=avail.distributions'

And then the same curl except with the v4 flag:
curl -4 -i -X GET -H 'Host: api.linode.com' -H 'X-LC-Request-ID: 4492557272' -H 
'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.1 (Linode) ' 
--compress 
'https://api.linode.com:443/?api_key=xxxxxxxxxxxxx&api_responseFormat=json&api_action=avail.distributions'

There is a drastic difference in the time it takes to execute the call. Linode 
driver should use the -4 flag for all calls.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to