forked from feliixx/mgodatagen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-dbs-collections-m60-nvme.sh
executable file
·31 lines (24 loc) · 2 KB
/
create-dbs-collections-m60-nvme.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#***********************************************************************************
# AI OPS shell script to create databases and collections in 5 MongoDB clusters
#***********************************************************************************
# flights-m60
# Connection string: mongodb+srv://aiops-team:[email protected]
#FlightsV100kS0I0
#WARN: --append is absent = old db is dropped, replaced by new instance!
#./mgodatagen -f config-bookings-100KS0I0.json --uri mongodb+srv://aiops-team:[email protected]
#FlightsV1MS0I0
./mgodatagen -f config-bookings-1MS0I0.json --append --uri mongodb+srv://aiops-team:[email protected]
#FlightsV10MS0I0
./mgodatagen -f config-bookings-10MS0I0.json --append --uri mongodb+srv://aiops-team:[email protected]
#FlightsV100MS0I0
./mgodatagen -f config-bookings-100MS0I0.json --append --uri mongodb+srv://aiops-team:[email protected]
# Same with Index: I1
./mgodatagen -f config-bookings-100KS0I1.json --append --uri mongodb+srv://aiops-team:[email protected]
./mgodatagen -f config-bookings-1MS0I1.json --append --uri mongodb+srv://aiops-team:[email protected]
./mgodatagen -f config-bookings-10MS0I1.json --append --uri mongodb+srv://aiops-team:[email protected]
./mgodatagen -f config-bookings-100MS0I1.json --append --uri mongodb+srv://aiops-team:[email protected]
# Same with Sharding: S1
./mgodatagen -f config-bookings-100KS1I1.json --append --uri mongodb+srv://aiops-team:[email protected]
./mgodatagen -f config-bookings-1MS1I1.json --append --uri mongodb+srv://aiops-team:[email protected]
./mgodatagen -f config-bookings-10MS1I1.json --append --uri mongodb+srv://aiops-team:[email protected]