Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment #30

Open
2 of 5 tasks
isedwards opened this issue Oct 29, 2022 · 2 comments
Open
2 of 5 tasks

Deployment #30

isedwards opened this issue Oct 29, 2022 · 2 comments
Assignees

Comments

@isedwards
Copy link
Member

isedwards commented Oct 29, 2022

api.climsoft.org (13.41.215.201)

Demonstration api used by demo.climsoft.org application

  • By default, two named databases should be available in the demonstration database and the user will be able to select which to use in the demo app: test-database and empty-database
  • Both databases should be non-persistent - their contents should be restored to default after X minutes.

api-prod.climsoft.org (18.169.81.197)

This api will be used by the app.climsoft.org web application.

  • The main production database must be persistent with no chance that it could be restored to default after X minutes.
  • The database server will contain many named databases
  • There should be a method to backup databases

Note: gaining access to climsoft.org DNS will take a few days. In the meantime we can set up api and api-prod at the openclimate.net domain.

@faysal-ishtiaq
Copy link
Collaborator

faysal-ishtiaq commented Oct 31, 2022

TODO:

  • write a script to install docker and docker-compose
  • write a script to restore databases to the original stage
  • write a cron job to restore db at X minutes interval

@faysal-ishtiaq
Copy link
Collaborator

@isedwards

There should be a method to backup databases

I have investigated a little bit into this. There are several ways to take backup which are described here:

To summarize, there are two tools called, mariadbdump and mariadb-backup.

mariadbdump takes a logical backup and stores the data in an SQL file. The restoration process is straightforward. Just need to execute the SQL file. But it takes more time than restoring physical backup.

mariadb-backup takes logical backup and stores the data in a directory. There is an additional prepare step which can be done either at backup or restore time. Takes less time than logical backup.

Which type of backup do we want? And where do we want to store the backups?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants