Statistics
| Branch: | Tag: | Revision:

root / snf-common / synnefo / lib @ 5f6ad491

# Date Author Comment
5f6ad491 09/27/2012 03:59 pm Christos Stavrakakis

Fix cleanup of DB pooled connections

Fix bug in cleanup of DB pooled connections before putting them back to
the pool. The way the connection was cleaned, resulted in mishandling of
the transactions.

Accoring to psycopg2 docs, in case of a READ COMMITED isolation level:...

e66c7993 09/27/2012 03:59 pm Georgios D. Tsoukalas

don't take mutex for cleanup

a8935947 09/27/2012 03:59 pm Georgios D. Tsoukalas

Enhance pooling API, implementation, and tests

- Verify objects (new and old) with a hook _pool_verify.
Discard objects from the pool that fail verification.
A newly created object failing verification is fatal.

- Remove all hooks from the pool set access critical section....

fb02390b 09/27/2012 03:59 pm Georgios D. Tsoukalas

complete some functionality

d8fe0948 09/27/2012 03:59 pm Georgios D. Tsoukalas

port pooled psycopg2 to new pool api

c156d23a 09/27/2012 03:59 pm Georgios D. Tsoukalas

remove obsolete kwarg verify

b9c83400 09/27/2012 03:59 pm Christos Stavrakakis

Fix bug in http connection pool

Do not reset connetion _pool attribute, since it is not (yet?)
initialized when getting the object from the pool.

68453d22 09/27/2012 03:59 pm Christos Stavrakakis

Enhange logging in db and http pools

ab133e68 09/07/2012 01:25 pm Vangelis Koukis

Move pooling psycopg2 wrapper to synnefo.lib.db

Move pooling psycopg2 wrapper to synnefo.lib.db,
please see commit e83ed1fb8fb4d0d19c2d3f86152fde60b3cadfd9 for all the
details on how to use the pooling wrapper for psycopg2.

27cfa807 09/06/2012 05:19 pm Vangelis Koukis

Pool HTTP connections to the astakos service

Have the astakos client use pooled HTTP connections to the astakos
service, uses facilities from synnefo/lib/pool/http.py.

818bb9bf 09/04/2012 04:45 pm Georgios D. Tsoukalas

simple http_request objects over connection pools

7138c600 08/25/2012 03:03 pm Vangelis Koukis

Make pool more robust on obj creation failure

Make ObjectPool handle failures during object creation more robustly,
and release the pool semaphore.

3447b13d 08/24/2012 07:17 pm Vangelis Koukis

Extend ObjectPool functionality, tests

09cdd926 08/24/2012 02:32 pm Vangelis Koukis

Rename ObjectPool methods to pool_{put(), get()}

de67123e 08/04/2012 01:34 am Vangelis Koukis

Support timeout in ObjectPool.get(), fix tests

Support optional timeout argument in ObjectPool.get(),
if supported by the underlying Semaphore implementation.

Implement command-line argument for ObjectPool unit tests to run
inside gevent monkey-patched environment.

749b8b8e 08/03/2012 06:21 pm Vangelis Koukis

Make minor fixes to Singleton class unit tests

45e32a00 08/03/2012 06:16 pm Vangelis Koukis

Add ObjectPool class in synnefo.lib

Add ObjectPool class in synnefo.lib.
The ObjectPool class is an abstract pool of objects,
based on Semaphore locks, as provided by the threading
package.

Tested to work with a gevent-monkey-patched threading package.
Uncomment the relevant lines in pool/tests.py to test with greenlet...

19092a69 07/24/2012 06:47 pm Vangelis Koukis

Implement Singleton pattern

Implement Singleton pattern inside synnefo.lib.singleton.

Whenever a class inherits from ArgBasedSingleton,
attempts to call the class do not always create a new
class instance, but return pre-existing, already made objects.
...

e0b68525 07/10/2012 12:05 pm Christos Stavrakakis

Fix bug in puka client

28f83276 07/09/2012 03:38 pm Kostas Papadimitriou

Merge branch 'simplequotas' into queues+minor_net

25649e21 07/02/2012 05:55 pm Christos Stavrakakis

Redeclare exchanges when reconnecting

9f1bbb33 06/29/2012 08:46 pm Sofia Papagiannaki

Fix authenticate

1055f3c6 06/29/2012 07:24 pm Sofia Papagiannaki

Differentiate Unauthorized astakos response from other error responses

db400d82 06/29/2012 01:38 pm Christos Stavrakakis

Refactor AMQP client

9c766317 06/06/2012 05:10 pm Christos Stavrakakis

Minor fixes

c4e55622 06/06/2012 04:56 pm Christos Stavrakakis

Update modules interacting with AMQP

Update all modules which are interacting with the RabbitMQ messaging system to
use the AMQPClient in order to use highly available queues in active/active
mode.

Extend messages to include a unique identifier in order to handle...

597e7eba 06/06/2012 03:52 pm Christos Stavrakakis

Client for interaction with a RabbitMQ broker

Introduce a client implementing connection and communication with a RabbitMQ
broker.

This client silently handles connection failures an tries to connect to a
different node. Also uses publisher-confirms to guarantee delivery to the...

21a69d65 04/09/2012 06:29 pm Antony Chazapis

Add instance to Aquarium receipt.

6b5b443b 03/16/2012 02:42 pm Antony Chazapis

Provide a fallback token to user library.

f8266c07 03/01/2012 07:11 pm Kostas Papadimitriou

Merge branch 'master' into astakos-integration

f09439ec 03/01/2012 07:09 pm Kostas Papadimitriou

RemoteAddr middleware

reusable middleware that sets the REMOTE_ADDR meta in request, if not
already set.

9af7206b 03/01/2012 06:45 pm Kostas Papadimitriou

Reusable cloudbar context processor

8acb1f97 02/23/2012 03:06 pm Kostas Papadimitriou

Common synnefo lib

Includes the following helpers to be used by synnefo django apps

- logging config initialization middlware
- astakos authentication helpers
- parse_http_date compat helper
- rabbitmq client using pika