From: Craig L Russell Date: December 5 2012 3:27pm Subject: Re: SessionFactory retrieval List-Archive: http://lists.mysql.com/cluster/8466 Message-Id: MIME-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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@stripped P.S. A good JDO? O, Gasp!