Do you mean something like this
https://stackoverflow.com/questions/42022570/how-to-add-delay-into-postgresql-database-creation-after-aws-db-instance
 ?

Sincerely
Michael 
> Am 06.04.2019 um 14:30 schrieb Ajay Tripathi <ajay3...@gmail.com>:
> 
> Hi,
> 
> Update: I've added documentation for testing and building the containers..
> 
> Questions/Discussion:
> 1. About Database:
> It looks like openwisp-radius and openwisp-controller can't migrate to the 
> same database.
> Unlike the network-topology module which migrated to the same database as the 
> openwisp-controller, 
> I had to change the database name for the radius module.
> Is this an expected behaviour or do we need to make openwisp-controller 
> database compatible with 
> the openwisp-radius database in the final version?
> 
> 2. Migration problem with docker-compose:
> When we run docker-compose for the first time. All the containers start 
> migrating parallelly which causes some containers 
> to fail in migrating. If we re-run the containers everything works fine 
> because the rest of the containers get a chance to migrate, 
> I think we need some kind of flag for the containers to communicate about 
> migrations in the first run. Please suggest on the same.
> 
> 3. Terraform creating order:
> When the database server starts, it takes a while to allow connections on 
> port 5432.
> But since terraform starts all the pods parallelly, some pods that try to 
> connect before postgresql is ready 
> and the pods fail, re-running the pods solve the problem but I could not find 
> how I can communicate to 
> terraform to let it know that database server is accepting connections and 
> dependand pods can be 
> created. Please advice how is it usually done. :)
> 
> Thanks,
> Ajay Tripathi
> -- 
> You received this message because you are subscribed to the Google Groups 
> "OpenWISP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to openwisp+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to