[ 
https://issues.apache.org/jira/browse/LIBCLOUD-539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13974290#comment-13974290
 ] 

dustin oberloh commented on LIBCLOUD-539:
-----------------------------------------

Mac OSX doesnt have a gai.conf. I did a bit of research and I see that mac 
prefers v6 over v4 in a query that returns both. Which api.linode.com does. I 
am going to try to figure out how to set a local entry that will resolve to the 
right v4 address. If you would like me to show the output from any commands let 
me know and I can put them in this bug. 

> 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