adequate
adequate
adequate
adequate
 

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   Forums 
July 22, 2018, 09:01:47 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: Grid topology  (Read 222 times)

aburak

  • JPPF Padawan
  • *
  • Posts: 4
Grid topology
« on: August 17, 2017, 01:15:03 PM »

Hi,

In my project, I try to configure two different JPPF topology which are independent of each others in the same network. I mean, two JPPF drivers do not see each other as nodes. I examined the JPPF Manual but I didn't find any solution to solve my problem. How should I make a configuration to establish two separate networks. I will be glad if you help me to solve this problem.

Best Regards
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2224
    • JPPF Web site
Re: Grid topology
« Reply #1 on: August 18, 2017, 05:12:37 AM »

Hello,

To prevent two drivers from seeing each other, you must disable the automatic peer driver discovery mechanism, which is enabled by default. This is done in the driver's configuration with this property:
Code: [Select]
jppf.peer.discovery.enabled = false
Similarly, if you wish to have two distinct groups of nodes, each seeing only one of the drivers, the simplest is to:

- disable the drivers broadcasting service with this configuration property:
Code: [Select]
jppf.discovery.enabled = false
- disable each node's driver discovery service and configure the connection to the driver manually:
Code: [Select]
# disable driver discovery
jppf.discovery.enabled = false
# connect to driver on specified host and port
jppf.server.host = driver1_host
jppf.server.port = 11111

In the same way, you may disable driver discovery in your clients and manually configure which driver(s) they connect to:
Code: [Select]
# disable driver discovery
jppf.discovery.enabled = false
# names of the drivers to connect to
jppf.drivers = driver1
# connect to the driver on specified host and port
driver1.jppf.server.host = driver1_host
driver1.jppf.server.port = 11111

With this approach, you can setup two or more distinct JPPF grids on the same network, each grid being compeltely independant from the others. You can even co-locate multiple drivers on the same host, provided you assign each of them a separate port with jppf.server.port = <port_number>

I hope this clarifies,
-Laurent
« Last Edit: August 18, 2017, 05:14:27 AM by lolo »
Logged

aburak

  • JPPF Padawan
  • *
  • Posts: 4
Re: Grid topology
« Reply #2 on: August 18, 2017, 10:09:48 AM »

The solution worked, thanks a lot  :D.
Logged

Deshazo

  • JPPF Padawan
  • *
  • Posts: 1
Re: Grid topology
« Reply #3 on: December 21, 2017, 04:01:24 PM »

Hi Laurent, how do you co-locate multiple drivers on the same host exactly? I've tried doing this but I believe it didn't work.
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