Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit a3818c2

Browse files
committed
Merge pull request #318 from rivik/elliptics_ipv6
Added option for config elliptics remotes addr family
2 parents 6ca389b + 30ab0da commit a3818c2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ to `elliptics`.
155155
1. `elliptics_groups`: Elliptics groups registry should use
156156
1. `elliptics_verbosity`: Elliptics logger verbosity (0...4)
157157
1. `elliptics_logfile`: path to Elliptics logfile (default: `dev/stderr`)
158+
1. `elliptics_addr_family`: address family to use when adding Elliptics remotes (default: `2` (for ipv4)). Use 10 for ipv6 remotes on Linux.
158159
159160
Example:
160161
```yaml

lib/storage/ellipticsbackend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, config):
5555
at_least_one = False
5656
for host, port in config.get('elliptics_nodes').iteritems():
5757
try:
58-
self._elliptics_node.add_remote(host, port)
58+
self._elliptics_node.add_remote(host, port, config.get('elliptics_addr_family', 2))
5959
at_least_one = True
6060
except Exception as err:
6161
logger.error("Failed to add remote %s:%d %s", host, port, err)

0 commit comments

Comments
 (0)