RAID10 like mongodb cluster?

hi

what is really neat about mongodb, that instead of using mongodb.conf

it’s possible with bash one-liners to startup multiple mongodb processes on a server

and thus automate setup via script.sh

already managed to get sharding to work with 2x disks on serverA (each disk holding 50%)

unfortunately did not yield performance improvements (at least for small dbs of megabytes and gigabytes)

failover: how would you setup a mongodb cluster that consists of serverA and serverB

so that serverB can automatically take over when serverA fails (like raid10 all data is on both servers, but switch1 (endpoint for clients?) should distribute read and write requests equally on both servers)

  1. to to increase performance of mongodb without cluster?
  2. does cluster (sharding) actually improve performance?
  3. how to do raid10 like setup?

( know what is meant? where there is redundancy but also improved performanec for large database?)

already started a setup.sh

but not allowed to post links here? so search codeberg_org for PYTHON_EXAMPLES_ONLINE

instead of using the systemd overhead to setup and run instances