Re: [Dev] Single tenant concurrent application creation fails for more than 10 apps

2015-10-12 Thread Aiyadurai Rajeevan
Hi All, I have been testing the below code for synchronizing the critical resource(remote repo URL), But still some of the pushes are failed. public boolean push(String remoteRepoUrl, String pushBranch, File repoFile) throws RepositoryMgtException { try { Git gitRepo =

Re: [Dev] Single tenant concurrent application creation fails for more than 10 apps

2015-10-12 Thread Samith Dassanayake
This code is wrong. As you can see variables "pushed" and "currentPushTry" are not thread safe in the first method. That might cause the errors. On Mon, Oct 12, 2015 at 12:23 PM, Aiyadurai Rajeevan wrote: > Hi All, > > I have been testing the below code for synchronizing the

Re: [Dev] Single tenant concurrent application creation fails for more than 10 apps

2015-10-09 Thread Aiyadurai Rajeevan
Hi All, I did 10 round of load test, below are the findings, Successfull out of 15 app creation requestSuccessfull out of 10 app creation request12101510131014101310141010991011101310 Since we have implemented a retry + sleep(if the push failed it will retry 3 time max with a sleep time,

[Dev] Single tenant concurrent application creation fails for more than 10 apps

2015-10-08 Thread Aiyadurai Rajeevan
Hi All, I have been doing a load test on WSO2 AppFactory where I'm trying to create 15 apps in 15 threads with a rampup period of 10sec.(There is not if we increase the ramup period) I was able to create ~5 apps and the rest app creation failed due to s2git repo not synced for the next