Hi Monks,

I am looking for Perl solutions where I need to read JSON configuration file containing linux server details and connected oracle DB information,
read this and run several Alert scripts on these DB's...say 100 Linux servers each hosting 4 oracle DB...The process is currently working in a serial manner.

i.e. reads the json file for {1st Linux server->1st DB-> Run Alert scripts.}
1st Linux server->2nd DB-> Run Alert scripts.
...3rd DB
...4th DB

Then reads the json file for {2nd Linux server ->1st DB-> Run Alert scripts}
2nd Linux server->2nd DB-> Run Alert scripts.
...3rd DB
...4th DB

and so on for next 100 (linux servers) * 4 (DBS) = 400 (hosts to monitor.)

This is again connected to a scheduling tool crontab for every 60 mins... but since its running serially for all 100 servers its taking nearly 90 mins ....and hence the second run overlapping the first run. Looking for robust parallel solutions!!!!


In reply to Run multiple alert monitoring perl scripts on several Linux machines hosting multiple oracle DB by aravind.kalla

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.