From: Graeme Wallace Date: December 5 2012 3:28pm Subject: Re: SessionFactory retrieval List-Archive: http://lists.mysql.com/cluster/8467 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b343b043d833604d01ca3ed --047d7b343b043d833604d01ca3ed Content-Type: text/plain; charset=ISO-8859-1 Hi Craig, It turned out to be due to a rolling restart that was being done (however the management node had already been restarted, it was only data nodes that were being done). As soon as the rolling restart completed, the timings dropped to around a second. On Wed, Dec 5, 2012 at 8:27 AM, Craig L Russell wrote: > Hi Graeme, > > On Dec 3, 2012, at 11:46 AM, Graeme Wallace wrote: > > On my cluster its currently taking 20-25 seconds to get a SessionFactory >> instance back from ClusterJHelper.**getSessionFactory(props) >> >> Is there anything I can do to make this faster ? >> > > Do you get the same response from e.g. starting a mysqld server? It's > basically the same code. > > There's nothing special about the way clusterj gets a session factory > (ndb_cluster_connection) but it does require contacting the management node > and setting up tcp connections from the client node to all data nodes. If > the management node is slow, overloaded, on a slow network, etc. I might > expect the initial connection to be slow. > > Craig > > >> G. >> >> -- >> Graeme Wallace >> CTO >> FareCompare.com >> O: 972 588 1414 >> M: 214 681 9018 >> > > Craig L Russell > Architect, Oracle > http://db.apache.org/jdo > 408 276-5638 mailto:Craig.Russell@oracle.**com > P.S. A good JDO? O, Gasp! > > -- Graeme Wallace CTO FareCompare.com O: 972 588 1414 M: 214 681 9018 --047d7b343b043d833604d01ca3ed--