Personally, I tend to stick config information that needs to be application-writable into a database rather than a plain file.

In this particular case, though, you don't need to be able to store it anywhere external to the app once it's been moved to mod_perl. mod_perl provides a persistent environment, so you just need to update the address list in memory and the change will stick around for the life of that process. Granted, each new process spawned will need to repeat the "retry, fail, and update address list" for itself when it receives its first request, but a) it's not that big a deal for each process to repeat that if each process then goes on to handle a couple hundred requests using the updated list and b) this provides a mechanism to automatically go back to using the primary/preferred address after the connection recovers/maintenance is complete.


In reply to Re: Where to store config info? by dsheroh
in thread Where to store config info? by Anonymous Monk

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.