-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P1 - Separate Cron Tasks From Impact-Graph #1656
Comments
@mohammadranjbarz I'll need your help to group all the cronjobs that we are currently embedding in impact-graph that we can detach. My current list if the cronjobs is the below:
|
What do you mean by separating them? |
@mohammadranjbarz Thanks for the suggestion, but I would say that making one version of impact-graph different than the others makes this whole idea of replicability worthless. If we want to worry which version on impact-graph is deciding what cronjobs are run, then it is an additional complication that is in the way of making it ready for scaling. @geleeroyale WDYT? |
Mentioning @jainkrati @mohammadranjbarz @divine-comedian @aminlatifi @geleeroyale @Rolazo for more engagement. |
I think it sounds good, we do maintain a lot of cron jobs and we are planning to add more! I don't have a good grasp on the amount of work this requires or what kind of work needs to happen. What would be the definitive PROs and CONs of this change? How many dev hours do we estimate this work would need? |
Look what I found - I will use this to move givfarm-notify jobs from an outdated server https://github.com/mcuadros/ofelia Edit: Its a bit of a tough system to set up, but I still like the possibilities. Its more geared towards running cron jobs in docker containers (which was not my use case - I wanted to run cron jobs on the host) so for refactoring impact-graph jobs out of impact-graph but still use the container this seems to be perfect |
@geleeroyale @mhmdksh what is the update on this issue? |
This is a refactor job for the developers. We are always down to support, but we would be more working with the consequences. The reason why @mhmdksh opened this issue is that @jainkrati asked for ways to improve DApp performance and this issue marks the most important step in preparing |
@divine-comedian we have implemented this on qacc backend which is a fork of impact graph Devops team have setup the required env, and has been up since yesterday. It has higher availability and shorter launch time. |
Great! Thanks @aminlatifi so what I understand is we would need to implement code, which is already written into qacc back-end into the impact-graph. |
@divine-comedian Yes exactly. To give more info about how this setup can look like if we implemented this. It will have the following benefits:
|
In an attempt to make impact-graph replicable and running in a high availability environment. Making this a reality concerns running multiple impact-graph instances at the same time which are all connected to the same DB and doing the same operations depending on the load and the traffic.
One thing that is preventing that from happening is embedding a lot of cronjobs inside impact-graph, making it impossible to run in a replicable manner.
Something that can help achieve that is separating these crons from impact-graph and make them run as a separate service that is talking to and endpoint on impact-graph which is called from somewhere else.
This will make us one step closer to run impact-graph in high-availability infra (Like Kubernetes or others)
@jainkrati @aminlatifi @mohammadranjbarz @CarlosQ96 I would appreciate your opinion on this
The text was updated successfully, but these errors were encountered: