Skip to main content

Mistral Project

Project description

Task Orchestration and Scheduling service for OpenStack cloud

Installation

First of all, in a shell run:

tox

This will install necessary virtual environments and run all the project tests. Installing virtual environments may take significant time (~10-15 mins).

Before the first run

Before starting Mistral server, run sync_db script.

tools/sync_db.sh –config-file path_to_config*

Running Mistral API server

To run Mistral API server perform the following command in a shell:

tox -evenv – python mistral/cmd/launch.py –server api –config-file path_to_config*

Note that an example configuration file can be found in etc/mistral.conf.sample.

Running Mistral Engines

To run Mistral Engine perform the following command in a shell:

tox -evenv – python mistral/cmd/launch.py –server engine –config-file path_to_config*

Running Mistral Task Executors

To run Mistral Task Executor instance perform the following command in a shell:

tox -evenv – python mistral/cmd/launch.py –server executor –config-file path_to_config

Note that at least one Engine instance and one Executor instance should be running so that workflow tasks are processed by Mistral.

Running Multiple Mistral Servers Under the Same Process

To run more than one server (API, Engine, or Task Executor) on the same process, perform the following command in a shell:

tox -evenv – python mistral/cmd/launch.py –server api,engine –config-file path_to_config

The –server command line option can be a comma delimited list. The valid options are “all” (by default if not specified) or any combination of “api”, “engine”, and “executor”. It’s important to note that the “fake” transport for the rpc_backend defined in the config file should only be used if “all” the Mistral servers are launched on the same process. Otherwise, messages do not get delivered if the Mistral servers are launched on different processes because the “fake” transport is using an in process queue.

Debugging

To debug using a local engine and executor without dependencies such as RabbitMQ, create etc/mistral.conf with the following settings:

[DEFAULT]
rpc_backend = fake

[pecan]
auth_enable = False

and run in pdb, PyDev or PyCharm:

mistral/cmd/launch.py --server all --config-file etc/mistral.conf --use-debugger

Running examples

To run the examples find them in mistral-extra repository (https://github.com/stackforge/mistral-extra) and follow the instructions on each example.

Tests

There is an ability to run part of functional tests in non-openstack mode locally. To do this:

# set auth_enable=false in the mistral.conf and restart Mistral # execute:

bash run_functional_tests.sh

To run tests for only one version need to specify it: bash run_functional_tests.sh v1

More information about automated tests for Mistral can be found here: https://wiki.openstack.org/wiki/Mistral/Testing

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mistral-0.1.1.tar.gz (254.7 kB view details)

Uploaded Source

Built Distribution

mistral-0.1.1-py2-none-any.whl (318.6 kB view details)

Uploaded Python 2

File details

Details for the file mistral-0.1.1.tar.gz.

File metadata

  • Download URL: mistral-0.1.1.tar.gz
  • Upload date:
  • Size: 254.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mistral-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f33c3d58284cfe3d63715dc95afd98fef8a8d95f899895b55b1a6926f2147aa0
MD5 bc178f801a421429ba33ffa5a4fb4c49
BLAKE2b-256 3c16b25ea0b708cbb7086710c5e24cace0f903a73d2dbbcae687c543d701ede6

See more details on using hashes here.

File details

Details for the file mistral-0.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for mistral-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 c7454d727a9b0e53894f1e9193e95a303f101df34e198eb2f5b665e0ace5ef91
MD5 e8d03dc3fa78dccb47c243fab757fbee
BLAKE2b-256 9448a379892d6ca47cc36d358661d85eb8cc38128b94f6e3d97468a61d60c39a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page