Maximum parallel replications for pull
Joseph94m opened this issue · comments
Is your feature request related to a problem? Please describe.
It's annoying and causes an avalanche effect when my pull based replications for the same Job start before the previous one is over.
It starts off by taking 2 minutes, then it slowly starts piling up until it reaches hours...
Describe the solution you'd like
The ability to specify, in the replication configuration:
- Maximum of replications waiting for an inProgress replication to finish
- Maximum replications that can be inProgress
Describe the main design/architecture of your solution
![image](https://private-user-images.githubusercontent.com/40126230/335573598-5ee952c3-3fb2-401f-a3a0-b3abdd6a847c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIwMjk4ODEsIm5iZiI6MTcyMjAyOTU4MSwicGF0aCI6Ii80MDEyNjIzMC8zMzU1NzM1OTgtNWVlOTUyYzMtM2ZiMi00MDFmLWEzYTAtYjNhYmRkNmE4NDdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDIxMzMwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyOGE0N2Q1ZjRhNjk1NWYzMjFhYTM4NmVkNzFlMjE4NmY3OGExZDZmNjc3Mzk1ZmNhYmFkOGE1ZWRiYmRjMTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3ks5EjROjPgFmGPbOG0RbOTgpiHad7TlHaa0kUFqdB4)
What do you guys think before we discuss implementation
The cron string is 0 */2 * * * *
, it means that the replication is start every 2 minutes, you should always keep the schedule interval longer than a single job complete time.
Hello, that's the fallback approach indeed.
But you cannot always guarantee a replication's time due to occasional bulk insertions in the source registry and network variability.
In your case, most of the InProgress replication job is actually Pending, you could check the job in the job service dashboard, they should in the job queue. you could adjust the job service worker count to control the max Parallel job.