libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Carr (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-539) Libcloud linode driver is extremely slow due to v6 curl call
Date Fri, 18 Apr 2014 14:41:15 GMT

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

John Carr commented on LIBCLOUD-539:
------------------------------------

I tried to reply to you on IRC but there was a connection timeout.

First of all, the curl output is a debugging thing. We don't actually use curl internally.
So there is nothing to pass the -4 flag to.

For me both test cases return immediately, from multiple locations. 

You can edit your gai.conf to prefer ipv4 to ipv6 which should solve this for you.

> 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)

Mime
View raw message