tjanczuk / git-azure

Deploy multiple node.js applications to Windows Azure from MacOS using Git
Other
61 stars 11 forks source link

multi-instance support #40

Open tjanczuk opened 12 years ago

pjutard commented 12 years ago

What I'm thinking for solving this issue is the following:

1) Add support for adding and removing instances from the CLI. 2) As all instances will be behind the same load balancer, the post-commit hook will hit allways one of those instances, so we should make that instance to propagate that POST to all the rest of the instances in the same role. For that purpose we can use the Azure SDK for Node.js for:

azure.RoleEnvironment.getRoles(function(error, roles) {
    if(!error){
        // You can get information about "instance1" of "role1" via roles['role1']['instance1']
    } 
});
pjutard commented 12 years ago

We should also think about how to handle the logs.

tjanczuk commented 12 years ago

There are several things that need to happen for multi-instance support:

This will take several commits, I will be doing the work in a scaleout branch.