<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: TTL usage</title>
		<link>http://www.datastax.com/support-forums/topic/ttl-usage</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 22:13:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/ttl-usage" rel="self" type="application/rss+xml" />

		<item>
			<title>nickmbailey on "TTL usage"</title>
			<link>http://www.datastax.com/support-forums/topic/ttl-usage#post-1193</link>
			<pubDate>Tue, 21 Feb 2012 19:13:04 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1193@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Timezones should not matter to cassandra, provided you have them configured correctly. What is important is that the system clocks on the nodes are synchronized using NTP.&#60;/p&#62;
&#60;p&#62;Cassandra will use unix timestamps (&#60;a href=&#34;http://en.wikipedia.org/wiki/Unix_time&#34; rel=&#34;nofollow&#34;&#62;http://en.wikipedia.org/wiki/Unix_time&#60;/a&#62;) for calculating the ttl expiration. Unix timestamps are timezone agnostic. You can see what I mean pretty easily using the date command in a unix environment:&#60;/p&#62;
&#60;p&#62;$ date&#60;br /&#62;
Tue Feb 21 13:11:31 CST 2012&#60;br /&#62;
$ TZ=America/Los_Angeles date&#60;br /&#62;
Tue Feb 21 11:11:36 PST 2012&#60;br /&#62;
$ date +%s&#60;br /&#62;
1329851504&#60;br /&#62;
$ TZ=America/Los_Angeles date +%s&#60;br /&#62;
1329851508
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "TTL usage"</title>
			<link>http://www.datastax.com/support-forums/topic/ttl-usage#post-1187</link>
			<pubDate>Tue, 21 Feb 2012 08:22:12 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1187@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Aside from the system clocks requirement (which kinda make the problem go away), the answer is not definitive to me; the calculated expire time, does it contain a timezone? &#60;/p&#62;
&#60;p&#62;So in my example, given that I insert a column on 2012-02-21T00:00:00+00:00 with a TTL of 25 hours, the expire time becomes 2012-02-22T01:00:00+00:00, or 2012-02-22 01:00 zulu. &#60;/p&#62;
&#60;p&#62;When synced with a node in GMT+1, where we will assume that the system clock also is on GTM+1, if the expire time holds the timezone, it can easily be converted to the system clock, so on this server the expire time is 2012-02-22 02:00 zulu. Does Cassandra work like this? Or is having the system clock of all nodes at GMT a must?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rbranson on "TTL usage"</title>
			<link>http://www.datastax.com/support-forums/topic/ttl-usage#post-1176</link>
			<pubDate>Sat, 18 Feb 2012 00:59:35 +0000</pubDate>
			<dc:creator>rbranson</dc:creator>
			<guid isPermaLink="false">1176@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;When an expiring column is inserted into Cassandra, the coordinator node actually transforms the TTL value provided into a timestamp based on that node's local clock (current time + TTL). The column is expired once the local clock on the queried node rolls past this expiration time.&#60;/p&#62;
&#60;p&#62;It's important (and a best practice) for the system clocks on all of your nodes (including the app tier) to be on UTC/GMT and regularly synchronized using NTP to avoid any issues like this.&#60;/p&#62;
&#60;p&#62;More information about expiring columns can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.datastax.com/dev/blog/whats-new-cassandra-07-expiring-columns&#34; rel=&#34;nofollow&#34;&#62;http://www.datastax.com/dev/blog/whats-new-cassandra-07-expiring-columns&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "TTL usage"</title>
			<link>http://www.datastax.com/support-forums/topic/ttl-usage#post-1170</link>
			<pubDate>Fri, 17 Feb 2012 08:32:59 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1170@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I'm using Cassandra to store piece of information that have a natural expiration date and time. When inserting them, I calculate the TTL based on the expiration date. This should mean that when the data expires it should automatically be removed from Cassandra (given resources are available and all).&#60;/p&#62;
&#60;p&#62;If this column-with-TTL is sync with another Cassandra node, possibly in another timezone, will the actual time on which the TTL should delete the column change or not? &#60;/p&#62;
&#60;p&#62;For example, suppose I put in a column in Cassandra at 00:00 in the GMT timezone with an expire time of 25 hours. This means it will be deleted the next day at 01:00. This column is synced to a server in Germany (GMT+1). Will that copy of the column also expire at 01:00 GMT, or 02:00 local time?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
