autopilotpattern / mongodb

A robust and highly-scalable implementation of MongoDB in Docker using the Autopilot Pattern
Mozilla Public License 2.0
42 stars 20 forks source link

Use ContainerPilot 3.3.0 and Consul 0.9.0 #15

Closed lucj closed 6 years ago

lucj commented 7 years ago

Start modifications to init the move to ContainerPilot v3 :)

lucj commented 7 years ago

A new job running mongodump is run if DUMP env variable is set. Additional functions (backup and upload) have been added to manage.py.

TO DO / FIX

-rw-r--r-- 1 root root  110 Aug  4 14:29 dump-2017-08-04T14:29:33.139365.gz
srwx------ 1 root root    0 Aug  4 14:29 mongodb-27017.sock
-rw-r--r-- 1 root root   36 Aug  4 14:29 mongodb-session

And then

ESC[36mdb_1             |ESC[0m time="2017-08-04T14:31:32Z" level=debug msg="interval expired but restart not permitted: backup"
ESC[36mdb_1             |ESC[0m time="2017-08-04T14:31:32Z" level=debug msg="event: {Stopping backup}"
ESC[36mdb_1             |ESC[0m time="2017-08-04T14:31:32Z" level=debug msg="event: {Stopped backup}"
lucj commented 7 years ago

Checking the DUMP_INTERVAL env var in order to add the backup job and set its inverval key with that value.

db:
    image: autopilotpattern/mongodb
    environment:
      - REPLICASET=testrs
      - CONSUL_AGENT=true
      - DUMP_INTERVAL=6h
      - LOG_LEVEL=DEBUG
      - MANTA_USER=...
      - MANTA_KEY_ID=...
    restart: always
ptariche commented 7 years ago

@geek

geek commented 7 years ago

@lucj are the remaining items on your checklist complete? LGTM, wondering how you feel about a merge.

lucj commented 7 years ago

@geek very sorry for my late reply. I have not done the remaining on my checklist yet. I also need to do some more testing.

ptariche commented 6 years ago

Any updates on this pr?

Adel-Magebinary commented 6 years ago

Any updates on this pr?

geek commented 6 years ago

@Adel-Magebinary no updates at the moment.

@lucj any thoughts on cutting the backup feature and trimming it down to only updating the versions/new ContainerPilot config?

lucj commented 6 years ago

@Adel-Magebinary @geek No update on my side. No problem, I'll remove the backup and only use last versions of the binaries.