Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
The Kafka Slurm Agent is a distributed computing and stream processing engine that can be used to run python code acrossmultiple SLURM managed HPC clusters or individual workstations.It uses Kafka to asynchronously communicate with agents installed on clusters and workstations.It contains a monitoring tool with a Web JSON API and a job submitter.It is a pure Python implementation using faust stream processing
The Kafka Slurm Agent is a distributed computing and stream processing engine that can be used to run python code across multiple SLURM managed HPC clusters or individual workstations. It uses Kafka to asynchronously communicate with agents installed on clusters and workstations. It contains a monitoring tool with a Web JSON API and a job submitter. It is a pure Python implementation using faust stream processing
Use the standard pip
tool to install. The recommended way is to use a Python virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install kafka-slurm-agent
In the folder in which you created the venv
subfolder run the following command:
kafka-slurm create-project --folder .
This will generate the following files:
kafkaslurm_cfg.py
- the configuration filerun.py
)submitter.py
)Please adjust the config file.
# KAFKA_FAUST_BROKER_CREDENTIALS
CLUSTER_JOB_NAME_SUFFIX = '_KSA'
to avoid conflicts with other projects running on your slurm cluster. The jobs managed by cluster-agent will be named "JOBID_SUFFIX" where the JOBID is the identifier that you assign when submitting a job and SUFFIX is handled by this configuration parameter.For a full list of configuration parameters refer to the documentation.
Use the built-in command kafka-slurm
to create topics. You should set the --new-topic-partitions
paramter to at least the number of planned clusters and workstations that will be used simultaneously.
For example:
kafka-slurm --new-topic-partitions 4 topics-create
An example of a script that you can implement is generated in run.py
Once this is ready, you can test your project locally:
./start_worker_agent
)./start_monitor_agent
)submitter.py
You can monitor the execution by opening http://localhost:6067/mon/stats/ on the host on which you've started the monitor-agent.
You can download and directly run a demonstration project: https://github.com/ilbsm/ksa_demo
FAQs
The Kafka Slurm Agent is a distributed computing and stream processing engine that can be used to run python code acrossmultiple SLURM managed HPC clusters or individual workstations.It uses Kafka to asynchronously communicate with agents installed on clusters and workstations.It contains a monitoring tool with a Web JSON API and a job submitter.It is a pure Python implementation using faust stream processing
We found that kafka-slurm-agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.