Sharding Elasticsearch by namespace versus by project
In Elasticsearch, we are currently sharding by project. In the future, we would like to be able to run "shards" of GitLab.com in different regions.
A couple of questions in this regard:
- Is the current model of sharding by project prohibiting us from also sharding by namespace, such that a top-level namespace can be in a different region? (All compute and storage in that region)
- If we were to shard by namespace instead of project, would this have make running additional regions of GitLab.com easier?