Find Jobs
Hire Freelancers

Small Python Application

$30-250 USD

Käynnissä
Julkaistu noin 13 vuotta sitten

$30-250 USD

Maksettu toimituksen yhteydessä
Python version: 2.7 Python modules: multiprocessing, argparse, time, datetime, sys, os ** if possible, [ import multiprocessing as mp ] External Python modules: Pika ([login to view URL]) Pika documentation ([login to view URL]) Psycopg2 ([login to view URL]) Server OS: Fedora 14 For the sake of the specification we'll call the app "vnetserver" The app should be controlled by an "init" run script called "vnetctrl" service vnetctrl {start|stop|restart|status} ....status: display main parent and any running children "vnetctrl" starts "vnetserver" vnetserver is called with a single command line option "-f" which points to the config file example: vnetserver -f /etc/vnet/[login to view URL] The config file contains the following: rabbitserver: [login to view URL] pgdsn: host=[login to view URL] dbname=mydbname user=mydnuser App starts and creates a pool of workers, 2x workers per cpu no. of cpus determined with multiprocessing.cpu_count() .... [ mp.cpu_count() ] App reads a message from the queue and passes it to a worker worker connects to postgres and inserts the message if the insert is successful, worker then acknowledges consumption (channel.basic_ack...) worker returns to the pool Additional thoughts: Is it possible to dynamically adjust the "worker pool size" based on system load? At this stage the message format is a simple test message which is the "epoch. milliseconds" Python Pika comes with various examples The objective is to test that Python will run on all cpus when given a heavy load.
Projektin tunnus (ID): 1013053

Tietoa projektista

1 ehdotus
Etäprojekti
Aktiivinen 13 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
1 freelancerit tarjoavat keskimäärin $100 USD tätä projektia
Käyttäjän avatar
Hello, i have experience in implementing python apps that use rabbitmq via pika. I can start immediately.
$100 USD 3 päivässä
0,0 (0 arvostelua)
0,0
0,0

Tietoja asiakkaasta

Maan UNITED KINGDOM lippu
Surrey, United Kingdom
5,0
5
Maksutapa vahvistettu
Liittynyt elok. 3, 2010

Asiakkaan vahvistus

Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.