Skip to main content

Support for distributed logs and computations in PM4Py

Project description

# pm4py-distr Support for distributed logs and computations in PM4Py.

See the currently supported API in api.txt

To execute locally an example (one master running on 5001 and two slaves running on 5002 and 5003) just run “python main.py”

The example contains the partitioned version of the logs “receipt” and “roadtraffic”.

## Example of usage of the distributed services (default keyphrase is “hello”):

  1. ALLOCATION OF THE PARTITIONS BETWEEN THE SLAVES

http://localhost:5001/doLogAssignment?keyphrase=hello

  1. CALCULATION OF THE DFG

http://localhost:5001/calculateDfg?keyphrase=hello&process=receipt

## Configuration of the keyphrase

The keyphrase that is shared between the slaves and the master is contained in the pm4pydistr.configuration file.

## Custom executions of master/slave

If instead of running the default example, you want to execute the master/slaves in custom configuration, follow the process:

  1. REMOVE THE EXAMPLE FILES

Remove the “master.db” database and the “master” folder

  1. CREATE A “master” FOLDER CONTAINING THE PARTITIONED DATASETS THAT YOU WANT TO USE

See the PARTITIONING.txt file for instructions on how to partition a log file into a partitioned dataset!

  1. LAUNCH THE MASTER

Launch the master with the command: python launch.py –type master –conf master –port 5001 (replace possibly the port, it is by default listening on 0.0.0.0)

  1. LAUNCH THE SLAVES

Launch a slave (that are master-aware) with the command:

python launch.py –type slave –conf slave1 –port 5002 –master-host 127.0.0.1 –master-port 5001 (replace possibly the port used by the slave, and the host/port that points to the master).

## Demo on a custom server

It may work, or it may not work :)

Distributed DFG calculation:

http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=roadtraffic

http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=bpic2018

http://212.237.8.106:5001/calculateDfg?keyphrase=hello&process=bpic2019

Retrieval of the start activities of the log:

http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=roadtraffic

http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=bpic2018

http://212.237.8.106:5001/getStartActivities?keyphrase=hello&process=bpic2019

Retrieval of the end activities of the log:

http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=roadtraffic

http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=bpic2018

http://212.237.8.106:5001/getEndActivities?keyphrase=hello&process=bpic2019

Project details


Download files

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

Source Distribution

pm4pydistr-0.1.13.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pm4pydistr-0.1.13-py3-none-any.whl (64.4 kB view details)

Uploaded Python 3

File details

Details for the file pm4pydistr-0.1.13.tar.gz.

File metadata

  • Download URL: pm4pydistr-0.1.13.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for pm4pydistr-0.1.13.tar.gz
Algorithm Hash digest
SHA256 d44b5fae5f172186f6b17b3bb3a81e61b1fa7bbf7a8e3de1262b4b31216d815e
MD5 b3bde839995a313924baf380dcef422c
BLAKE2b-256 403bfc0fdc92c4bb42ba67f65683badb45c068ec37cb56f3e2f8da42bcd7f2b9

See more details on using hashes here.

File details

Details for the file pm4pydistr-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: pm4pydistr-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 64.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for pm4pydistr-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce21d34aaa35435b07df7b08047bf2e9d173fd03754afb758646240897ff97d
MD5 e4a1fd4e0350c220f7e8f316a8133d79
BLAKE2b-256 e6adc65aac57befb57ee35739ff32015b0fb65ee0159fab0795189a38f8c4a60

See more details on using hashes here.

Supported by

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