Welcome! Log In Create A New Profile

Advanced

Quick question on the Timezone

Posted by Ravi Chittari 
Ravi Chittari
Quick question on the Timezone
September 22, 2010 10:50PM
We have memcached instances up and running in production. We want to
change our systems from one timezone ( Say EST) to UTC.
Does memcached instance automatically pick up new Timezone and what
happens to the cached items?

Thanks,
Ravi.
Brian Moon
Re: Quick question on the Timezone
September 22, 2010 10:50PM
On 9/22/10 3:41 PM, Ravi Chittari wrote:
> We have memcached instances up and running in production. We want to
> change our systems from one timezone ( Say EST) to UTC.
> Does memcached instance automatically pick up new Timezone and what
> happens to the cached items?

Memcached does not use time zones.

--

Brian.
--------
http://brian.moonspot.net/
Matt Ingenthron
Re: Quick question on the Timezone
September 22, 2010 11:10PM
On 9/22/10 1:41 PM, Ravi Chittari wrote:
> We have memcached instances up and running in production. We want to
> change our systems from one timezone ( Say EST) to UTC.
> Does memcached instance automatically pick up new Timezone and what
> happens to the cached items?

IIRC, times are tracked as relative to the local clock, so if you change
the system clock things will either expire late or early. It's probably
best to restart the cache server for this sort of thing.
Brian Moon
Re: Quick question on the Timezone
September 22, 2010 11:10PM
On 9/22/10 4:03 PM, Matt Ingenthron wrote:
> On 9/22/10 1:41 PM, Ravi Chittari wrote:
>> We have memcached instances up and running in production. We want to
>> change our systems from one timezone ( Say EST) to UTC.
>> Does memcached instance automatically pick up new Timezone and what
>> happens to the cached items?
>
> IIRC, times are tracked as relative to the local clock, so if you change
> the system clock things will either expire late or early. It's probably
> best to restart the cache server for this sort of thing.

But, changing the system clock is not the same as changing the time
zone. Time zones are only a formatting thing. A point in time is the
same no matter what the time zone.

--

Brian.
--------
http://brian.moonspot.net/
Ravi Chittari
Re: Quick question on the Timezone
September 23, 2010 12:00AM
I guess, I did not phrase my question correctly to begin with.
Changing the server time from EST based to UTC based will probably
expire all the items immediately as UTC offsets the time by ( -X
hours).

Thanks,
Ravi.

On Wed, Sep 22, 2010 at 2:08 PM, Brian Moon <[email protected]> wrote:
> On 9/22/10 4:03 PM, Matt Ingenthron wrote:
>>
>> On 9/22/10 1:41 PM, Ravi Chittari wrote:
>>>
>>> We have memcached instances up and running in production. We want to
>>> change our systems from one timezone ( Say EST) to UTC.
>>> Does memcached instance automatically pick up new Timezone and what
>>> happens to the cached items?
>>
>> IIRC, times are tracked as relative to the local clock, so if you change
>> the system clock things will either expire late or early. It's probably
>> best to restart the cache server for this sort of thing.
>
> But, changing the system clock is not the same as changing the time zone.
> Time zones are only a formatting thing. A point in time is the same no
> matter what the time zone.
>
> --
>
> Brian.
> --------
> http://brian.moonspot.net/
>
manoher tadakokkula
Re: Quick question on the Timezone
September 23, 2010 08:20AM
afaik, memcache expiry timestamp is always based on unix epoch, hence its
timezone independent.

-manoher

On Thu, Sep 23, 2010 at 3:20 AM, Ravi Chittari <[email protected]>wrote:

> I guess, I did not phrase my question correctly to begin with.
> Changing the server time from EST based to UTC based will probably
> expire all the items immediately as UTC offsets the time by ( -X
> hours).
>
> Thanks,
> Ravi.
>
> On Wed, Sep 22, 2010 at 2:08 PM, Brian Moon <brian[email protected]> wrote:
> > On 9/22/10 4:03 PM, Matt Ingenthron wrote:
> >>
> >> On 9/22/10 1:41 PM, Ravi Chittari wrote:
> >>>
> >>> We have memcached instances up and running in production. We want to
> >>> change our systems from one timezone ( Say EST) to UTC.
> >>> Does memcached instance automatically pick up new Timezone and what
> >>> happens to the cached items?
> >>
> >> IIRC, times are tracked as relative to the local clock, so if you change
> >> the system clock things will either expire late or early. It's probably
> >> best to restart the cache server for this sort of thing.
> >
> > But, changing the system clock is not the same as changing the time zone.
> > Time zones are only a formatting thing. A point in time is the same no
> > matter what the time zone.
> >
> > --
> >
> > Brian.
> > --------
> > http://brian.moonspot.net/
> >
>
Sorry, only registered users may post in this forum.

Click here to login