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, 05:30:54 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: Have Nodes log to main application log file  (Read 4110 times)

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Have Nodes log to main application log file
« on: July 06, 2011, 11:36:14 PM »

Hi there, I need the ability to log to a centralized log file that is configured by our application. Do you see any issues with the recommendation by apache within jppf?
http://logging.apache.org/log4j/1.2/faq.html#a3.3

Have you ever configured this, and know of any gotchas?

Thanks you in advance!
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Have Nodes log to main application log file
« Reply #1 on: July 07, 2011, 07:22:37 AM »

Hello,

JPPF already has a feature that allows servers and nodes to send logging statements as JMX notifications, with specific implementations for Log4j and JDK logging.
You can read how to set it up for node at this location: http://www.jppf.org/wiki/index.php?title=Node_management#Remote_logging
and for a server: http://www.jppf.org/wiki/index.php?title=Server_management#Remote_logging
What you can do is use the existing management APIs to get the list of nodes from the server, and subscribe to all JMX notifications from server and nodes from the same notification listener, and that will give you a centralized way to receive and process logging from the grid components.

I hope this helps.

Sincerely,
-Laurent
Logged

codemonkey

  • JPPF Council Member
  • *****
  • Posts: 138
Re: Have Nodes log to main application log file
« Reply #2 on: July 07, 2011, 05:01:15 PM »

That's great, I guess I should look at the docs first  :-[

Thank you very much, again!
Logged

jaydatta

  • Guest
Re: Have Nodes log to main application log file
« Reply #3 on: July 28, 2012, 03:05:34 PM »

Hi Lauren,

Continuing the sam. We are not able to get centralized logging for node and driver. I got above information but not able to get log.
We have runner class which creates three agent which are implementing runnable, in these agent's run method we are creating job and putting multiple task in the same job which will run on node. We are getting log upto call to Node code, after that we are not getting logs.

Could you please help for this? Let me know if you require any information.

Thanks and regards,
Jaydatta
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2272
    • JPPF Web site
Re: Have Nodes log to main application log file
« Reply #4 on: July 30, 2012, 06:45:45 PM »

Hi Jaydatta,

Could you please post your logging configuration (node and driver) and the code use to receive the logging JMX notifications form them ?
Also, I have attached a sample code which works in my environment. COuld you please try it and let us know if it works for you as well?

Thanks,
-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