Hi Reka, Isuru,
In a simpler scneario where PHP depends on MySQL, PHP instance get the
MySQL details(host, username, password) from the metadata service. If MySQL
instance is restarted, IP of the MySQL instance is changed, but it is not
reflected to PHP instance. PHP app will fails when it tries to connect to
the MySQL database.
A possible solution
1) Agent listen to the ClusterInactivatedEvent
2) When the event received, check the inactivate cluster is a
dependency of the particular instance's cluster
3) If so, re fetch the details from the metadata service.
Better suggestions are appreciated.
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897