Find Jobs
Hire Freelancers

Small Python Application

$30-250 USD

In Progress
Posted about 13 years ago

$30-250 USD

Paid on delivery
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.
Project ID: 1013053

About the project

1 proposal
Remote project
Active 13 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $100 USD for this job
User Avatar
Hello, i have experience in implementing python apps that use rabbitmq via pika. I can start immediately.
$100 USD in 3 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Surrey, United Kingdom
5.0
5
Payment method verified
Member since Aug 3, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.