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:09:35 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: Is it possible to have a scheduler explicitly schedule tasks to certain nodes  (Read 1270 times)

lmr3796

  • JPPF Padawan
  • *
  • Posts: 2

Dear all,

I'm new to JPPF.
I'm wondering is it possible to have a scheduler (implemented with my own algorithm) being able to explicitly decide which node does a task goes to?
For example, I'd like to do something like "I want only node A and B for Job1, others should not compute Job1".
Is it possible?
« Last Edit: February 14, 2014, 12:04:29 PM by lmr3796 »
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site

Hello,

This is exactly what you can do with an execution policy specified in the job's SLA.

You will also find in our documentation a detailed description of how to create use an execution policy, as well as a complete reference of what can be done with an execution policy.

For example regarding your current concern, let's say we have node A at IP address 192.168.1.11 and node B at 192.168.1.15, then you can limit a job to these 2 nodes as follows (we could use the host names in exactly the same way):

Code: [Select]
JPPFJob job = new JPPFJob();
// false means do not ignore case
ExecutionPolicy policy = new Contains("ipv4.addresses", false, "192.168.1.11").or(new Contains("ipv4.addresses", false, "192.168.1.15"));
job.getSLA().setExecutionPolicy(policy);
// ... add tasks and submit the job ...

I hope this clarifies.

Sincerely,
-Laurent
« Last Edit: February 14, 2014, 03:05:11 PM by lolo »
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