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 03, 2023, 09:14:59 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: Can I run multiple job on a node concurrently  (Read 2820 times)

jerome_tan

  • Guest
Can I run multiple job on a node concurrently
« on: December 28, 2011, 09:47:06 AM »

Can I run multiple job on a node concurrently?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Can I run multiple job on a node concurrently
« Reply #1 on: December 29, 2011, 09:56:06 AM »

Hi Jerome,

This answer is no. With a single node, you can only execute one job at a time. It ensues that if you want to execute multiple jobs concurrently on a JPPF grid, you will need multiple nodes.
However, it doesn't mean that if you submit multiple jobs, each job will wait until the previous job is completed to start. The JPPF server attempts to be fair when jobs have the same priority.
For example, let's say you have jobA and jobB, each with 50 tasks and the same priority, and you use the "manual" load-balancing algorithm with a size of 10 (the server will send 10 tasks at a time to each node). If you only have one node, the execution flow will be as follows:
- the server sends 10 tasks from jobA to the node
- the server then send 10 tasks from jobB to the node
- then again 10 tasks from jobA
- etc ...

So, in a sense, this could be seen as a distributed preemptive multitasking mechanism.

I hope this clarifies.

Sincerely,
-Laurent

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