Dgraph + TLS is not working

I also wanted to proactively add some tips in case you try out dgraph live and run into the problems.

This is what I did to get live loader worker to load the 21million schema.

Run Alpha in Encrypted Mode

You don’t have to use REQUIREANDVERIFY, it was the one I chose for testing this out.

dgraph zero --my="$(hostname):5080" --idx 1
dgraph alpha --my="$(hostname):7080" \
  --zero "$(hostname):5080" \
  --lru_mb 2048 \
  --tls_dir=./tls \
  --tls_client_auth=REQUIREANDVERIFY

Run Live Loader

dgraph live \
  --tls_cacert ./tls/ca.crt \
  --tls_cert ./tls/client.user.crt \
  --tls_key ./tls/client.user.key \
  --tls_server_name "$(hostname)" \
  -s 21million.schema \
  -f 21million.rdf.gz

For the schema, this is that big 21 million record movie database used in tutorials, you can get these from: benchmarks/data at master · dgraph-io/benchmarks · GitHub.

2 Likes