rabbitmq/ra-kv-store

How to set env

Closed this issue · 1 comments

Describe the bug

Thanks for this example.
This erlang app requires some env variables, for example, application:get_env(ra_kv_store, nodes). Could you please suggest how to set these env?

Reproduction steps

1.source code
2.
3.
...

Expected behavior

set env variables

Additional context

No response

There's a configuration example in the Jepsen test:

String configuration =
String.format(
"[\n"
+ erlangNetTickTime
+ " {ra, [\n"
+ " {data_dir, \"/tmp/ra_kv_store\"},\n"
+ " {wal_max_size_bytes, %d}\n"
+ " ]},\n"
+ " {ra_kv_store, [\n"
+ " {port, 8080},\n"
+ " {nodes, [%s]},\n"
+ " {server_reference, ra_kv%s},\n"
+ " {release_cursor_every, %d}\n"
+ " ]}\n"
+ "].",
walMaxSizeBytes,
String.join(", ", nodes),
nodeIndex,
releaseCursorEvery);
.

If you decompress the archive file in e.g. /opt/rakvstore, the configuration must be /opt/rakvstore/releases/1/sys.config.