This issue collates all the points that could be helpful in improving graph writes. There are three ways to solve the issue.
- Improve current data_importer service
- Run data_importer gunicorn (HTTP Server) process in multi-worker mode
- Run more than one replica for data_importer in openshift
- Split actual graph sync process in a way that other workers are not kept waiting
- Call data_importer/<ingest_to_graph> API in an asynchronous way. (Cons, we may loose logging ability. Pros, very simple to implement and no worker is kept waiting)
- Update the workflow to not wait for Graph Sync task (Not much idea if possible. cc @fridex)
- Implement data_importer/<ingest_to_graph> as part of selinon tasks. (Cons, implementation might require more time. Pros, all the selinon related advantage)
- Use single-model instead of multi-model which helps in faster writes. (Cons, rewrite full graph. Pros, writes will be much faster. Need to see how much faster with a small load test)
cc @msrb @krishnapaparaju @samuzzal-choudhury
This issue collates all the points that could be helpful in improving graph writes. There are three ways to solve the issue.
cc @msrb @krishnapaparaju @samuzzal-choudhury