Skip to content

Commit 1863bce

Browse files
committed
docs: Document that it is possible to deploy to a list of shards
1 parent c1de008 commit 1863bce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/config.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ deployment should be stored, which defaults to `primary`, and a list of
159159
mentioned in `indexers`. The names for the indexers must be the same names
160160
that are passed with `--node-id` when those index nodes are started.
161161

162+
Instead of a fixed `shard`, it is also possible to use a list of `shards`;
163+
in that case, the system uses the shard from the given list with the fewest
164+
active deployments in it.
165+
162166
```toml
163167
[deployment]
164168
[[deployment.rule]]
@@ -174,6 +178,7 @@ match = { network = [ "xdai", "poa-core" ] }
174178
indexers = [ "index_node_other_0" ]
175179
[[deployment.rule]]
176180
# There's no 'match', so any subgraph matches
181+
shards = [ "sharda", "shardb" ]
177182
indexers = [
178183
"index_node_community_0",
179184
"index_node_community_1",

0 commit comments

Comments
 (0)