The lease.databases field in the configuration currently only supports complete names for the db to use (e.g. users.db). If wildcard/regex's and/or environment variable interpolation were supported this would allow sharding for non-candidate nodes.
Some examples:
wildcard support for all user dbs
lease:
databases: ["*users.db"]
regex matching for user dbs beginning with an m
lease:
databases: ["m.*\.users.db"]
Environment variables used for rendering a database name
lease:
databases: ["${USER_NAME}.users.db"]
Any of the above options would be really useful for cases like sharding data across multiple db files where the non-candidate node's config is only concerned with (in this example) a specific set of users.
The
lease.databasesfield in the configuration currently only supports complete names for the db to use (e.g.users.db). If wildcard/regex's and/or environment variable interpolation were supported this would allow sharding for non-candidate nodes.Some examples:
wildcard support for all user dbs
regex matching for user dbs beginning with an
mEnvironment variables used for rendering a database name
Any of the above options would be really useful for cases like sharding data across multiple db files where the non-candidate node's config is only concerned with (in this example) a specific set of users.