This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Introduction

Selena is a tool for monitoring website performance by monitoring response times, response codes and site content (via keyword checks).

This is its agent part responsible for gathering the data and sending back the results.

Installation

Requirements

Selena agent requires Python 2.7 which is included in the latest Ubuntu Server 12.04 LTS systems:

$ sudo apt-get install python-dev python-virtualenv

Dependencies:

$ sudo apt-get install libcurl3 libcurl4-openssl-dev

Message queue

Selena agent communicates with a central queue with Redis as the broker. Install redis:

$ sudo apt-get install redis-server

Since lost tasks can always be sent again, the durability guarantees which Redis provides by default are not necessary. You can significantly speed up the queue by commenting out the save lines from /etc/redis/redis.conf.

We can check the status of the Redis server:

$ redis-cli -h localhost -p 6379 -n 0 info

Virtual Environment

Create a virtual environment for Python in the user’s home directory:

$ virtualenv . --distribute --no-site-packages

System User

Unprivileged and not owned by a person:

$ sudo adduser --home /home/selena-agent selena-agent
$ sudo su - selena-agent

In any shell the user can activate the virtual environment. As a result, the default Python executable and helper scripts will point to those within the virtualenv directory structure:

$ which python
/usr/local/bin/python
$ source bin/activate
(selena-agent)$ which python
/home/selena-agent/bin/python

Installing from pip

Simply invoke:

(selena-agent)$ pip install selena-agent

Installing from sources

Alternatively, to live on the bleeding edge, you can clone the selena-agent git repository to project and install it manually:

(selena-agent)$ git clone git://github.com/allegro/selena-agent.git project
(selena-agent)$ cd project
(selena-agent)$ pip install -e .

Configuration

Create file selena-agent/settings-local.py and fill in the appropriate data:

Fill Redis connection data:

REDIS_CONNECTION = {
    'HOST': 'your redis host',
    'PORT': 'your redis port',
    'DB': None,
    'PASSWORD': None,
}

RQ queue name:

QUEUE_NAME = 'your RQ queue name'

The salt has to match the one from the main Selena administration page:

SALT = 'taken from Selena system'

Run

To run selena-agent use the command:

(selena-agent)$ selena-agent

License

Selena is licensed under the Apache License, v2.0.

Copyright (c) 2013-2014 Allegro Group.

Release History

Release History

1.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
selena-agent-1.0.3.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Nov 13, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting