[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    RE: cache a object in modperl [EXT]
From:       James Smith <js5 () sanger ! ac ! uk>
Date:       2020-09-16 11:38:49
Message-ID: 74aa3a95f15a4347a0b4cbe444f854b0 () sanger ! ac ! uk
[Download RAW message or body]

[Attachment #2 (text/plain)]

You can still have an always up service – but it will require a bit of work and a \
load balancing proxy set up in front of multiple apache instances. You can then \
restart each backend independently without an issue.

If the apaches are relatively lightweight you can run two on the same machine (e.g. \
on ports 8000 & 8001) and another one set up as a proxy on 80/443 which proxies back \
to these two.

I use this for a dev/live setup on a VM – where 8000 is live and 8001 is dev – \
and a lightweight apache proxies back to the other two…

From: Mithun Bhattacharya <mithnb@gmail.com>
Sent: 14 September 2020 06:49
To: mod_perl list <modperl@perl.apache.org>
Subject: Re: cache a object in modperl [EXT]

Haha I can't answer that - I work with systems which are always up. We have users \
working across the globe so there is no non-active time.

In my case I would have to throw an independent cache (my current choice is REDIS but \
you could chose a DB_File for all I know) and refresh it as needed - IANA I could hit \
every 30 min to check for update :)

On Mon, Sep 14, 2020 at 12:44 AM Wesley Peng \
<wpeng@pobox.com<mailto:wpeng@pobox.com>> wrote:


Mithun Bhattacharya wrote:
> Does IANA have an easy way of determining whether there is an update
> since a certain date ? I was thinking it might make sense to just run a
> scheduled job to monitor for update and then restart your service or
> refresh your local cache depending upon how you solve it.

Yes I agree with this.
I may monitor IANA's database via their version changes, and run a
crontab to restart my apache server during the non-active user time
(i.e, 3:00 AM).

Or do you have better solution?
Thanks.



-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">You can still have an \
always up service – but it will require a bit of work and a load balancing proxy \
set up in front of multiple apache instances. You can then restart each backend \
independently  without an issue.<br>
<br>
If the apaches are relatively lightweight you can run two on the same machine (e.g. \
on ports 8000 &amp; 8001) and another one set up as a proxy on 80/443 which proxies \
back to these two.<br> <br>
I use this for a dev/live setup on a VM – where 8000 is live and 8001 is dev – \
and a lightweight apache proxies back to the other two…<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p> <div \
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm"> <p \
class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Mithun \
Bhattacharya &lt;mithnb@gmail.com&gt; <br>
<b>Sent:</b> 14 September 2020 06:49<br>
<b>To:</b> mod_perl list &lt;modperl@perl.apache.org&gt;<br>
<b>Subject:</b> Re: cache a object in modperl [EXT]<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Haha I can't answer that - I work with systems which are always \
up. We have users working across the globe so there is no non-active \
time.<o:p></o:p></p> <div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">In my case I would have to throw an independent&nbsp;cache (my \
current choice is REDIS but you could chose a DB_File for all I know) and refresh it \
as needed - IANA I could hit every 30 min to check for update :)<o:p></o:p></p> \
</div> </div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, Sep 14, 2020 at 12:44 AM Wesley Peng &lt;<a \
href="mailto:wpeng@pobox.com">wpeng@pobox.com</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm \
6.0pt;margin-left:4.8pt;margin-right:0cm"> <p class="MsoNormal"><br>
<br>
Mithun Bhattacharya wrote:<br>
&gt; Does IANA have an easy way of determining whether there is an update <br>
&gt; since a certain date ? I was thinking it might make sense to just run a <br>
&gt; scheduled job to monitor for update and then restart your service or <br>
&gt; refresh your local cache depending upon how you solve it.<br>
<br>
Yes I agree with this.<br>
I may monitor IANA's database via their version changes, and run a <br>
crontab to restart my apache server during the non-active user time <br>
(i.e, 3:00 AM).<br>
<br>
Or do you have better solution?<br>
Thanks.<o:p></o:p></p>
</blockquote>
</div>
</div>



-- 
 The Wellcome Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 

</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic