[gold-users] Gold Parallel Request Handling

Scott Jackson scottmo at adaptivecomputing.com
Tue Jul 26 13:47:16 MDT 2011


I have just made a change that enables parallel request handling in Gold. The gold server was modified to be able to handle multiple requests simultaneously. The contention for the initial request id has been avoided allowing queries to succeed while processing other operations and allowing transactions to succeed while processing long running queries.

The change consists of the following patch:

Index: lib/Gold/Proxy.pm
===================================================================
--- lib/Gold/Proxy.pm	(revision 356)
+++ lib/Gold/Proxy.pm	(working copy)
@@ -199,6 +199,10 @@
         try
         {
             $self->{_requestId} = $self->{_database}->nextId("Request");
+
+            # Commit so we can release the lock on the keygen table and 
+            # avoid having simple long operations block other queries
+            $self->{_database}->getHandle()->commit();
         }
         catch Error with
         {

All future versions of Gold will contain this patch, including a new distribution of gold-2.2.0.3 that was just uploaded.

Let me know if anyone sees any problems with it, but it appeared to work as designed in my testing.

Thanks,

Scott


More information about the gold-users mailing list