Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glentner/dist_exe
Distributed execution tool.
https://github.com/glentner/dist_exe
asynchronous-tasks distributed-computing python
Last synced: 6 days ago
JSON representation
Distributed execution tool.
- Host: GitHub
- URL: https://github.com/glentner/dist_exe
- Owner: glentner
- License: apache-2.0
- Created: 2019-08-30T17:32:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T23:40:30.000Z (about 5 years ago)
- Last Synced: 2024-10-30T00:44:43.665Z (16 days ago)
- Topics: asynchronous-tasks, distributed-computing, python
- Language: Python
- Size: 27.3 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Distributed Executor
====================[![GitHub License](http://img.shields.io/badge/license-Apache-blue.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0)
[![Python Version](http://img.shields.io/badge/python-3.7-orange.svg?style=flat)](https://docs.python.org/3.7)A cross-platform reference implementation for processing shell commands over
a distributed, asynchronous queue. `dist_exe` is a single producer
(server) many consumer (client) system. It functions similar to *GNU Parallel*
but scales out to many servers and even across operating systems.This tool uses only standard library methods so there are no dependencies.
It has been tested on Linux, macOS, and Windows 10 in Python 3.7 environments.
The server and clients don't even need to be using the same platform.Installation
------------```
pip install dist_exe [--upgrade] [--user]
```Usage
-----The _server_ role reads from standard input and publishes to a queue. If you don't
have something actively creating work a good approach is to create a _MANIFEST_ file
and use `tail -f` to wait for work to arrive.```
user@host-01: ~ $ touch MANIFEST
user@host-01: ~ $ tail -f MANIFEST | dist_exe server -H 0.0.0.0 -p 5050 -k SECRET
```The _client_ role connects to the remote queue and pulls items off, executing them using the local shell.
You can specify a template for the command line invocation, otherwise the items are take as being the entire
invocation.```
user@host-02: ~ $ dist_exe client -H host-01 -p 5050 -k SECRET -t 'echo {}'
```