Motivation:
S2Counter use the s2graph as the storage of counting values.
In some cases, the graph servers are separated into write-only and read-only servers. However, counter use the only one config for the graph url. So, we need to add a additional config for read-only graph server.
Modifications:
Add GRAPH_READONLY_URL on s2.config.StreamingConfig
Add GRAPH_READONLY_URL on s2.config.S2CounterConfig
change s2.counter.core.v2.*StorageGraph to use the value GRAPH_READONLY_URL.
Result:
If we set graph.read-only.url on application.conf for s2counter_loader. We can read from the read-only server.
Motivation: S2Counter use the s2graph as the storage of counting values. In some cases, the graph servers are separated into write-only and read-only servers. However, counter use the only one config for the graph url. So, we need to add a additional config for read-only graph server.
Modifications:
GRAPH_READONLY_URL
ons2.config.StreamingConfig
GRAPH_READONLY_URL
ons2.config.S2CounterConfig
s2.counter.core.v2.*StorageGraph
to use the valueGRAPH_READONLY_URL
.Result: If we set
graph.read-only.url
on application.conf for s2counter_loader. We can read from the read-only server.