Skip to content

Instantly share code, notes, and snippets.

@jtanx
Created March 9, 2020 10:16
Show Gist options
  • Save jtanx/db221d2fe307c2fbea0a1f26f85b086f to your computer and use it in GitHub Desktop.
Save jtanx/db221d2fe307c2fbea0a1f26f85b086f to your computer and use it in GitHub Desktop.
Service discovery descriptor
config:
min_port: 1000
max_port: 2000
shmem:
default:
- proc_a
- proc_b
tcp:
default:
- proc_a
- proc_b # String match
- /^proc_a[1-5]$/ # Regex
foo:
- $myproc_a:1234 # Fixed port number
bar:
- myproc_b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment