Joystream / joystream

Joystream Monorepo
http://www.joystream.org
GNU General Public License v3.0
1.42k stars 115 forks source link

colossus: support specifying multiple endpoints in operator metadata #4982

Open mnaamani opened 11 months ago

mnaamani commented 11 months ago

It is currently possible to run multiple instances of a storage-node in ready-only mode (Only makes sense when all instances have access to the shared storage). This supports horizontal scaling and improves availability, however the operator currently only publishes a single endpoint for their node+bucket., This implies the operator must

An additional approach would be to allow multiple endpoint to be specified in the protobuf message used to update the opreator metadata. The operator may also want to provide separate endpoint for POST request to upload objects (ie. writing into the storage) from the endpoint used to serve content (ie. reading from storage).

This change would impact the proto message, storage node operator command, query-node schema and mappings. We would have to update distributor node to be aware of multiple endpoint for a storage node in new schema. We would have to update atlas/ypp as well to recognize multiple endpoints.