{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/436","repository_url":"https://api.github.com/repos/elastic/elasticsearch-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/436/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/436/events","html_url":"https://github.com/elastic/elasticsearch-py/issues/436","id":171221279,"number":436,"title":"Getting ConnectionTimeout during creating index snapshots.","user":{"login":"vachanda","id":12047814,"avatar_url":"https://avatars.githubusercontent.com/u/12047814?v=3","gravatar_id":"","url":"https://api.github.com/users/vachanda","html_url":"https://github.com/vachanda","followers_url":"https://api.github.com/users/vachanda/followers","following_url":"https://api.github.com/users/vachanda/following{/other_user}","gists_url":"https://api.github.com/users/vachanda/gists{/gist_id}","starred_url":"https://api.github.com/users/vachanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vachanda/subscriptions","organizations_url":"https://api.github.com/users/vachanda/orgs","repos_url":"https://api.github.com/users/vachanda/repos","events_url":"https://api.github.com/users/vachanda/events{/privacy}","received_events_url":"https://api.github.com/users/vachanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-15T17:42:32Z","updated_at":"2016-08-19T11:33:18Z","closed_at":null,"body":"Hi,\r\nI'm using elasticsearch version 1.4.4 running on ubuntu 14.04LTS. Its a 2 node setup with 3.5 GB of heap space for each node. I'm using elasticsearch-py version 1.4.0.\r\n\r\nI'm trying to run a script which does the simple job of verifying the es repository and create index snapshots to that repository. \r\n\r\n`             snap_client = client.SnapshotClient(es_client)\r\n               snap_client.get_repository(self.REPO_NAME, request_timeout=60)   \r\n               snap_settings = {'indices': index_name, 'ignore_unavailable': True, 'include_global_state': True}\r\n                snapshot_name = app_name + '-' + time.strftime('%Y%m%d%H%M%S')\r\n                snap_client = client.SnapshotClient(es_client)\r\n                snap_client.create(repository=self.REPO_NAME, snapshot=snapshot_name, body=snap_settings, request_timeout=60)`\r\n\r\nBut I keep getting, the following exception -\r\n`ConnectionTimeout caused by - ReadTimeoutError(HTTPConnectionPool(host=u'172.16.249.249', port=9200): Read timed out. (read timeout=60))`\r\n\r\nI've even tried to increase the request_timeout, but in vain.\r\n\r\nAny ideas on how to resolve it?"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/comments/240995323","html_url":"https://github.com/elastic/elasticsearch-py/issues/436#issuecomment-240995323","issue_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/436","id":240995323,"user":{"login":"vachanda","id":12047814,"avatar_url":"https://avatars.githubusercontent.com/u/12047814?v=3","gravatar_id":"","url":"https://api.github.com/users/vachanda","html_url":"https://github.com/vachanda","followers_url":"https://api.github.com/users/vachanda/followers","following_url":"https://api.github.com/users/vachanda/following{/other_user}","gists_url":"https://api.github.com/users/vachanda/gists{/gist_id}","starred_url":"https://api.github.com/users/vachanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vachanda/subscriptions","organizations_url":"https://api.github.com/users/vachanda/orgs","repos_url":"https://api.github.com/users/vachanda/repos","events_url":"https://api.github.com/users/vachanda/events{/privacy}","received_events_url":"https://api.github.com/users/vachanda/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T11:33:18Z","updated_at":"2016-08-19T11:33:18Z","body":"Hi @HonzaKral ,\r\nThanks for the response. Will try to use `es_client.snapshot`."}}
{"actor":{"display_login":"vachanda"}}