Skip to content

Improve Graph Sync #11

Description

@miteshvp

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
  1. Run data_importer gunicorn (HTTP Server) process in multi-worker mode
  2. 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
  1. 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)
  2. Update the workflow to not wait for Graph Sync task (Not much idea if possible. cc @fridex)
  3. Implement data_importer/<ingest_to_graph> as part of selinon tasks. (Cons, implementation might require more time. Pros, all the selinon related advantage)
  • Improve Graph Writes
  1. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions