Skip to content

Commit

Permalink
Fix shardnode and oramnode join ports
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Feb 22, 2024
1 parent 3f02c9f commit 8000560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ansible/templates/oblishard-oramnode.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ExecStart=/root/oblishard/oramnode/oramnode \
-raftport {{ item.raftport }} \
{% if item.replicaid!=0 %}
# this assumes there are 3 replicas (Dangerous assmumption)
{{'-joinaddr=' + oramnode_endpoints.endpoints[item.id * 3].exposed_ip + ':' + oramnode_endpoints.endpoints[item.id].port | string }} \
{{'-joinaddr=' + oramnode_endpoints.endpoints[item.id * 3].exposed_ip + ':' + oramnode_endpoints.endpoints[item.id * 3].port | string }} \
{% endif %}
-conf /root/oblishard/ \
-logpath {{ '/root/oblishard/oramnode/' + item.id | string + '/' + item.replicaid | string + '/all.log' }}
Expand Down
2 changes: 1 addition & 1 deletion ansible/templates/oblishard-shardnode.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ExecStart=/root/oblishard/shardnode/shardnode \
-raftport {{ item.raftport }} \
{% if item.replicaid!=0 %}
# this assumes there are 3 replicas (Dangerous assmumption)
{{'-joinaddr=' + shardnode_endpoints.endpoints[item.id * 3].exposed_ip + ':' + shardnode_endpoints.endpoints[item.id].port | string }} \
{{'-joinaddr=' + shardnode_endpoints.endpoints[item.id * 3].exposed_ip + ':' + shardnode_endpoints.endpoints[item.id * 3].port | string }} \
{% endif %}
-conf /root/oblishard/ \
-logpath {{ '/root/oblishard/shardnode/' + item.id | string + '/' + item.replicaid | string + '/all.log' }}
Expand Down

0 comments on commit 8000560

Please sign in to comment.