Giter Club home page Giter Club logo

graph-refresh-job's Introduction

thoth-graph-refresh-job

A job for scheduling solver to resolve dependency graphs and package-analyzer to gather digests and ABI of new packages or packages not analyzed yet.

Running the job locally

You can run this job locally. The job will talk to OpenShift API to schedule jobs in Thoth's middletier namespace and will check for packages which were not analyzed yet by talking to a cluster Dgraph's instance:

$ pipenv install  # Install all the requirements
$ oc login <cluster-url>  # Make sure you are logged in
$ KUBERNETES_VERIFY_TLS=0 THOTH_INFRA_NAMESPACE=thoth-test-core GRAPH_SERVICE_HOST=graph.test.thoth-station.ninja GRAPH_TLS_PATH=./tls-test pipenv run python3 ./app.py

You need to obtain TLS certificates in order to talk to a cluster graph database and place them into ./tls-test directory as shown above.

Insights to graph-refresh job

The job is run periodically as OpenShift's CronJob. It can be also triggered automatically by Thoth's monitoring system when there is no workload happening in Thoth's middletier namespace.

Note

  • graph-refresh job is run in Thoth's frontend namespace
  • templates for solvers and package analyzers are picked from Thoth's infra namespace - see installed solvers endpoint on Management API for available solvers in the deployment
  • solvers and package analyzers are scheduled in Thoth's middletier namespace
  • workload operator makes sure solvers are run based on resources available in the middletier namespace
  • graph sync scheduler makes sure results of solver runs get synced into Thoth's graph database (raw JSON files are stored on Ceph)

Packages which are not resolved yet might be coming from:

  • user requests on advises for software stacks
  • user requests for provenance checks
  • container image scans
  • explicitly registering Python packages to Thoth on Management API endpoint

graph-refresh-job's People

Contributors

bissenbay avatar durandom avatar fridex avatar goern avatar harshad16 avatar kpostoffice avatar leonjia0112 avatar pacospace avatar sesheta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.