Giveth / impact-graph

MIT License
47 stars 16 forks source link

Create db replica infra for test env #1552

Open aminlatifi opened 2 months ago

aminlatifi commented 2 months ago

To test the correct implementation of db read-only replica use, it would be super helpful if we could have such infra (master db + a read-only replica) on local host and test env

mhmdksh commented 2 months ago

Thanks @aminlatifi for creating this.

Once we create this we can also integrate it with our CI-CD Pipeline in which the tests can run on a HA DB Cluster (Which makes the tests more real)

mhmdksh commented 1 month ago

@Rolazo What's the update on that??

Rolazo commented 1 month ago

@mhmdksh @aminlatifi @CarlosQ96 please see the commit, there's a main postgres database with its own replica, check here Under the branch db_read-only

mhmdksh commented 1 month ago

@mhmdksh @aminlatifi @CarlosQ96 please see the commit, there's a main postgres database with its own replica, check here Under the branch db_read-only

@Rolazo Please share what would be the connection strings that we should input in the impact-graph configurations.