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

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
June 04, 2023, 10:08:24 AM *
Welcome,
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: JPPF client config vs server config  (Read 2311 times)

mmingfeilam

  • Guest
JPPF client config vs server config
« on: May 05, 2015, 01:35:23 AM »

in the jppf tutorial, there is a jppf.properties file where you set how you want the client to run, including load balancing algorithm, but on the server side, there is also another config file where you can set the load balancing algorithm.  i wonder which setting takes precedence? thanks.
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: JPPF client config vs server config
« Reply #1 on: May 05, 2015, 07:42:09 AM »

Hello,

In fact there is no precedence relationship between load-balancing in the server and in the client. Both load-balance against different entities:

1) In the server, load-balancing is performed against the nodes, as can be expected, so the workload is distributed efficiently among the nodes.

2) In the client, load balancing is performed against execution channels, where an execution channel can be:
- a connection to a remote server. Remember that a client can connect to any number of servers, and that it can also have any number of connections to each server
- or a local executor (only one per JPPFClient instance).

Some typical use cases:
- when you submit a single job at a time over a single server connection, the effect of the load-balancing is that it determines in how many chunks the job will be sent to the server. For instance if you have a job with 50 tasks and you use the "manual" algorithm with a size of 10, then the job will be sent to the server in 5 chunks. This can be useful when a job has a large memory footprint and you'd rather not send it all at once.
- when you submit multiple jobs concurrently over multiple connections
- another less common use is to enable parallel I/O for a single job sent over multiple connections to the server, by specifying its number of execution channels in the client-side job SLA.
- any combination of the above is possible, which allows a range of behaviors from very simple to very complex.

I hope this clarifies,
-Laurent
Logged

Sergunka

  • JPPF Padawan
  • *
  • Posts: 3
Re: JPPF client config vs server config
« Reply #2 on: June 03, 2015, 08:25:31 PM »

For instance if you have a job with 50 tasks and you use the "manual" algorithm with a size of 10

Hi Laurent,

Thank you very much for you detailed explanations.

When you said "manual" algorithm with a size of 10" does it mean that we have a record like below?

# "manual" profile
jppf.load.balancing.profile.manual_profile.size = 10 


in jppf properties file?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: JPPF client config vs server config
« Reply #3 on: June 04, 2015, 12:22:01 PM »

Hello,

Yes this is what I meant. The load-balancer settings in the config file should look like this:

Code: [Select]
jppf.load.balancing.algorithm = manual
jppf.load.balancing.profile = manual_profile
jppf.load.balancing.profile.manual_profile.size = 10

Sincerely,
-Laurent
Logged

Sergunka

  • JPPF Padawan
  • *
  • Posts: 3
Re: JPPF client config vs server config
« Reply #4 on: June 04, 2015, 08:29:39 PM »

Hello,

Yes this is what I meant. The load-balancer settings in the config file should look like this:

Code: [Select]
jppf.load.balancing.algorithm = manual
jppf.load.balancing.profile = manual_profile
jppf.load.balancing.profile.manual_profile.size = 10

Sincerely,
-Laurent

Laurent,

Thank you,

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