I would like to configure the alpha, zero and ratel use different port.
here is what i have tried
the dgraph version
Draph version : v20.03.1
Dgraph SHA-256 : cbd3c7fd96d08f6b78259a10e03d70ab85a4afd3c9a4c68daac6358fe84a4b6e
Commit SHA-1 : c201611d6
Commit timestamp : 2020-04-24 13:53:41 -0700
Branch : HEAD
Go version : go1.14.1
/usr/local/bin/dgraph zero --my “127.0.0.1:12001”
from the terminal of zero , here is the log output
…
I0610 17:32:30.395100 50177 run.go:108] Setting up grpc listener at: 0.0.0.0:5080
I0610 17:32:30.395608 50177 run.go:108] Setting up http listener at: 0.0.0.0:6080
badger 2020/06/10 17:32:30 INFO: All 1 tables opened in 1ms
…
I0610 17:32:30.462085 50177 raft.go:702] Done applying conf change at 0x1
I0610 17:32:30.462492 50177 pool.go:160] CONNECTING to localhost:7080
W0610 17:32:30.462515 50177 pool.go:191] Shutting down extra connection to localhost:7080
W0610 17:32:30.464759 50177 pool.go:254] Connection lost with localhost:7080. Error: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp [::1]:7080: connect: connection refused”
…
/usr/local/bin/dgraph alpha --lru_mb 4096 --my “127.0.0.1:11001” --zero “127.0.0.1:12001”
from the terminal of alpha, the output is
…
I0610 17:48:40.687705 50235 groups.go:107] Current Raft Id: 0x1
I0610 17:48:40.687849 50235 worker.go:96] Worker listening at address: [::]:7080
I0610 17:48:40.691336 50235 run.go:480] Bringing up GraphQL HTTP API at 0.0.0.0:8080/graphql
I0610 17:48:40.691387 50235 run.go:481] Bringing up GraphQL HTTP admin API at 0.0.0.0:8080/admin
I0610 17:48:40.691443 50235 run.go:512] gRPC server started. Listening on port 9080
I0610 17:48:40.691457 50235 run.go:513] HTTP server started. Listening on port 8080
I0610 17:48:40.791031 50235 pool.go:160] CONNECTING to 127.0.0.1:12001
W0610 17:48:40.792132 50235 pool.go:254] Connection lost with 127.0.0.1:12001. Error: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp 127.0.0.1:12001: connect: connection refused”
I0610 17:48:45.692838 50235 query.go:123] Dgraph query execution failed : Dgraph query failed because Please retry again, server is not ready to accept requests
I0610 17:48:45.692905 50235 admin.go:520] Error reading GraphQL schema: Dgraph query failed because Dgraph query failed because Please retry again, server is not ready to accept requests.
I0610 17:48:50.693990 50235 query.go:123] Dgraph query execution failed : Dgraph query failed because Please retry again, server is not ready to accept requests
…
for testing zero :
if i do the localhost:12001/state , the page cannot be reached
if i do the localhost:6080/state , it return the following
{“counter”:“9”,“groups”:{“1”:{“members”:{“1”:{“id”:“1”,“groupId”:1,“addr”:“localhost:7080”,“leader”:true,“lastUpdate”:“1591819452”}},“tablets”:{“dgraph.graphql.schema”:{“groupId”:1,“predicate”:“dgraph.graphql.schema”},“dgraph.type”:{“groupId”:1,“predicate”:“dgraph.type”}},“checksum”:“3103359118597316741”}},“zeros”:{“1”:{“id”:“1”,“addr”:“localhost:5080”,“leader”:true}},“maxTxnTs”:“10000”,“maxRaftId”:“1”,“cid”:“748d8a6a-ddbc-47ca-bc0a-8eb1e21e6980”,“license”:{“maxNodes”:“18446744073709551615”,“expiryTs”:“1594411453”,“enabled”:true}}
for testing alpha
if i do the localhost:11001, the page cannot be reached
if i do the localhsot:8080, i get the following
{“errors”:[{“message”:“No membership state found”,“extensions”:{“code”:“Error”}}]}
for ratel ,
/usr/local/bin/dgraph-ratel -port 13001 -addr “http://127.0.0.1:11001”
in brwoser, http://localhost:13001/?latest , it try to connect , it has “connected” check mark but with read color icon
should i use the --port_offset for both alpha and zero? however, it doesn’t work as expected.
My goal is to organize the port that dgraph use.
Thanks…