Skip to content

Commit

Permalink
example: update listen ports of sentinels
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Feb 28, 2017
1 parent 280f8be commit b14416d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def codis_admin_proxy(admin_port, args=None):
children.append(CodisServer(2000 + i, requirepass=product_auth))
children.append(CodisServer(3000 + i, 2000 + i, requirepass=product_auth))

for port in range(26380, 26385):
children.append(CodisSentinel(port))
for i in range(0, 5):
children.append(CodisSentinel(20000 + i))

check_alive(children, 1)
print("[OK] setup codis-server & codis-sentinel")
Expand Down Expand Up @@ -63,7 +63,7 @@ def codis_admin_proxy(admin_port, args=None):
codis_admin_dashboard(18080, "--resync-group --gid={}".format(gid))

for i in range(0, 5):
codis_admin_dashboard(18080, "--sentinel-add --addr=127.0.0.1:{}".format(26380+i))
codis_admin_dashboard(18080, "--sentinel-add --addr=127.0.0.1:{}".format(20000+i))

codis_admin_dashboard(18080, "--slot-action --interval=0")
codis_admin_dashboard(18080, "--sentinel-resync")
Expand Down

0 comments on commit b14416d

Please sign in to comment.