Hi all,

I have faced in to a situation that need to update existing cartridge
instances without interrupt  the process. AFAIU there are two types of
updates that need to be applied.

   1. OS level/ Security updates
   2. Application level updates (Load balancer, PHP, MySQL)


*Patching OS level/ Security updates*

Since this is a mandatory update we have to shutdown the server and then
need to restart it after successfully update the patch. But this will
interrupt the whole process.
Cartridge agent related updates can be consider as OS level update.

*Solution*

   - Spawn a new instance and apply the updates.
   - Terminate exiting instance
   - Repeat the above steps until spawn new instances on behalf of existing
   instances

*Patching Application level updates*

Status of the cartridge instance set into 'Maintenance' mode, apply updates
and then set again as an 'Active' instance

*Expose to user*

Introduce new rest endpoint via SM which will provide the access to patch
selected cluster.

As the first step I would like to start with the "patching OS level
updates".

Highly appreciate your thoughts on this.

Thanks,
-- 
*Dinesh Bandara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

Reply via email to