[other] - Extend Watchdog to improve reliability

Discussion in 'Improvement Suggestions' started by milagroso, October 13, 2009.

  1. milagroso
    • Premium Supporter

    milagroso MP Donator

    Joined:
    May 23, 2007
    Messages:
    95
    Likes Received:
    7
    Ratings:
    +7 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Hello all,

    I'm using MP now for almost 3 years and went through many funny problems. A good addition IMO was the watchdog and I propose to extend it's functionality. Working in the automotive industry I see that the SW working in our cars most of all has to be reliable and in future also safe. The HTPC is also a system which has to work very reliably. However, 'normal' PC's are often not that reliable because either the HW or the SW or both with the time run into tricky configurations where they get stuck under seldom circumstances.

    Rationale:
    Besides of creating stable SW a watchdog can easily improve the reliability of the system 'HTPC'. The user shall get diagnostic information if the watchdog was active.

    Current situation:
    Currently the MP-Watchdog monitors the existence of the process of MP. As soon as it gets killed, the watchdog is activated, collects information and restarts MP.

    Proposal:
    Extend the MP-Watchdog to monitor also:
    • unresponsiveness of process of MP
    • unresponsiveness or killing of process of TV Service
    • unresponsiveness or killing of process of MySQL Service
    Implement any notification mechanism to the user, e.g. by
    • Status Information on some screen
    • email
    • other usual notification mechanisms for server monitoring
    Implement incrementally a refined set (and configurable) of recovery mechanisms like
    • kill/restart service/application
    • reboot PC
    • shut PC down

    Benefits:
    • 'Hangs' due to SW and partially due to HW faults could be pragmatically resolved
    • The reliability of the system would increase even in the diversified landscape of HTPC implementations
    • One could go to vacation and leave the system safely behind

    Kind regards from Stuttgart


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. te3hpurp
    • Premium Supporter

    te3hpurp Retired Team Member

    Joined:
    September 23, 2008
    Messages:
    904
    Likes Received:
    182
    Gender:
    Male
    Occupation:
    Senior Software Architect
    Location:
    Rovaniemi
    Ratings:
    +229 / 0
    Home Country:
    Finland Finland
    Show System Specs
    +1 for that.
    I was thinking something like that 6 months ago, but i could not find time to do it.
     
  4. milagroso
    • Premium Supporter

    milagroso MP Donator

    Joined:
    May 23, 2007
    Messages:
    95
    Likes Received:
    7
    Ratings:
    +7 / 0
    Home Country:
    Germany Germany
    Show System Specs
    AW: Extend Watchdog to improve reliability

    Hello all,

    in the past days I started working on an ad-hoc solution for such a watchdog. I grew up a powershell script and in these days I'm refining it. As soon as I'm convinced that it does more use than harm (e.g. by inadvertently killing the MP process or by shutting down the PC) I will post it here.

    One question to the admin: Where would it be best posted? In MediaPortal Plugins?

    regards from Stuttgart
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!