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 
November 22, 2019, 10:08:11 PM *
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: Client tries to connect to localhost instead of configured server  (Read 2198 times)

clgv

  • JPPF Master
  • ***
  • Posts: 25

JPPF version: 3.1.1

I get the following output when trying to connect my client to the remote JPPF server.
Quote
[client: mindstorm - ClassServer] Attempting connection to the class server at localhost:11111
[mindstorm - ClassServer - delegate] SocketInitializer.initializeSocket(): Could not reconnect to the remote server

Thats weird since I used the following configuration where A.B.C.D is the server IP:
Quote
jppf.drivers=mindstorm
mindstorm.server.jppf.server.port=11111
mindstorm.server.jppf.server.host=A.B.C.D
mindstorm.server.jppf.management.port=11198
mindstorm.server.jppf.management.host=A.B.C.D
reconnect.interval=1
strategy.test.initialSize=10
strategy.test.initialMeanTime=1.0E9
jppf.discovery.port=11111
jppf.local.execution.accumulation.time=100
jppf.local.execution.enabled=false
reconnect.initial.delay=1
jppf.local.execution.accumulation.unit=m
jppf.discovery.enabled=false
jppf.pool.size=1
jppf.local.execution.accumulation.size=4
jppf.load.balancing.algorithm=proportional
strategy.test.performanceCacheSize=2000
jppf.load.balancing.strategy=test
reconnect.max.time=60
strategy.test.proportionalityFactor=1
jppf.discovery.group=230.0.0.1

I started the client with the java command line option
Code: [Select]
-Djppf.config=client.properties.

So what am I doing wrong so that the client tries to connect to localhost?
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2257
    • JPPF Web site
Re: Client tries to connect to localhost instead of configured server
« Reply #1 on: August 23, 2012, 04:59:25 AM »

Hello,

There is a small problem in your configuration, instead of:

Code: [Select]
mindstorm.server.jppf.server.port=11111
mindstorm.server.jppf.server.host=A.B.C.D
mindstorm.server.jppf.management.port=11198
mindstorm.server.jppf.management.host=A.B.C.D

you should use:

Code: [Select]
mindstorm.jppf.server.port=11111
mindstorm.jppf.server.host=A.B.C.D
mindstorm.jppf.management.port=11198
mindstorm.jppf.management.host=A.B.C.D

Sincerely,
-Laurent
Logged

clgv

  • JPPF Master
  • ***
  • Posts: 25
Re: Client tries to connect to localhost instead of configured server
« Reply #2 on: August 23, 2012, 09:27:29 AM »

Oh right. I should not implement properties files generation that late in the evening!
I wonder which restructuring task got the additional "server" there...
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