container-images icon indicating copy to clipboard operation
container-images copied to clipboard

DBZ-2848 Initialize inventory on MongoDB start

Open ismailsimsek opened this issue 3 years ago • 3 comments

ismailsimsek avatar Nov 29 '21 15:11 ismailsimsek

@rk3rn3r now it should work. combined js and bash code in one script and had to restart MongoDB to deploy replicaset

ismailsimsek avatar Nov 30 '21 10:11 ismailsimsek

@ismailsimsek I think we are getting closer to a working solution. But I have one more generic question about this solution: When I understand it correctly this container can only be used for single node clusters, right? For some test cases we want to use multi-node clusters / multi-node replica sets. Do you think your solution can be extended for setting up multi-node Mongo DB clusters (which is imo the most common use-case for a Mongo DB)?

rk3rn3r avatar Nov 30 '21 14:11 rk3rn3r

I think we are getting closer to a working solution. But I have one more generic question about this solution: When I understand it correctly this container can only be used for single node clusters, right? For some test cases we want to use multi-node clusters / multi-node replica sets. Do you think your solution can be extended for setting up multi-node Mongo DB clusters (which is imo the most common use-case for a Mongo DB)?

reverted previous $HOSTNAME logic. don't have much MongoDB experience but now it should work with multi-node clusters.

ismailsimsek avatar Nov 30 '21 15:11 ismailsimsek