JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net

The open source
grid computing

 Home   About   Features   Download   Documentation   On Github   Forums 
June 03, 2023, 04:58:53 PM *
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Manual configuration for multiple JPPF servers  (Read 1668 times)


  • JPPF Padawan
  • *
  • Posts: 4
Manual configuration for multiple JPPF servers
« on: February 14, 2014, 03:31:17 AM »

From what I've seen in the docs, you can have multiple JPPF servers in a grid for failover purposes. I'm curious about the scenario where you have to manually configure the JPPF servers, as opposed to using the auto-discovery option.

A client can be configured to connect to those servers by setting something similar to the following:

jppf.drivers = driver1 driver2 = <driver1_hostname>
driver1.jppf.server.port = <driver1_port>
driver1.priority = 10 = <driver2_hostname>
driver2.jppf.server.port = <driver2_port>
driver2.priority = 5

And as I understand, the JPPF server with the highest priority acts as the "active" server. When this one goes down, the other one takes over.

But it seems you cannot configure the nodes to recognize multiple servers in a similar fashion. I can set a node to connect to driver1, but if that server goes down, is there no way to switch over to driver2?


  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Manual configuration for multiple JPPF servers
« Reply #1 on: February 14, 2014, 08:13:28 AM »


In fact, we are addressing this problem in two ways:
- up to JPPF v4.0, there is a dedicated sample/demo which illustrates how a failover strategy can be implemented for the nodes via an initiialization hook.
- in the upcoming JPPF v4.1, we make it a fully fledged JPPF feature, as described in this feature request: JPPF-212 Add a hook for specifying the server to which a node should connect.

I would also like to add 2 small remarks about your stated understanding of how the configuration of the connection works:
- instead of "driver2.priority", you should now use the new form "driver2.jppf.priority". This results from an effort in harmonizing the properties names in JPPF. Currently, the code still checks for "driver2.priority" when the new form is not specified, to ensure backward compatibility with older configuration files, but this will not always be the case.
- the strategy based on the priority hierarchy is no longer part of the JPPFClient implementation. As a consequence, to use it as a connection failover strategy, you need to wrap it in another built-in class, as detailed in the the ClientWithFailover wrapper class section of the documentation.

I hope this clarifies.



  • JPPF Padawan
  • *
  • Posts: 4
Re: Manual configuration for multiple JPPF servers
« Reply #2 on: February 14, 2014, 06:13:43 PM »

Hi Laurent,

Thanks for responding so promptly. Yes, I was referring to old configuration syntax as I'm still on JPPF 3.x and don't yet have the opportunity to upgrade in the immediate future. But your reply certainly helps clarify things.


Pages: [1]   Go Up
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at Fast, secure and Free Open Source software downloads