Redian新闻
>
有懂bigtable ,hbase,c*的么?问一个timestamp的问题
avatar
有懂bigtable ,hbase,c*的么?问一个timestamp的问题# Programming - 葵花宝典
t*r
1
有懂bigtable ,hbase,c*的么?问一个timestamp的问题
bigtable里面timestamp的用法在hbase,c*里有么?
比如:by specifiying timestamp, I can get value of latest version that is
earlier than a specified timestamp.
avatar
p*2
2
对于一个key吧?C*应该可以。
avatar
w*z
3
C*每个column 有个timestamp, read return 的时候,如果cl >1,会比较timestamp of
the column from different node, in case of inconsistency, return the column
with the latest timestamp. client doesn't need to deal with the vector clock
crap. the last write wins.

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

avatar
g*g
4
You want to have the timestamp as column name for indexing purpose.

of
column
clock

【在 w**z 的大作中提到】
: C*每个column 有个timestamp, read return 的时候,如果cl >1,会比较timestamp of
: the column from different node, in case of inconsistency, return the column
: with the latest timestamp. client doesn't need to deal with the vector clock
: crap. the last write wins.

avatar
f*t
5
Hbase里有,get时可以指定一个timestamp

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

avatar
w*z
6
not sure what he is asking. if he needs timeseries data, then use timeuuid
as part of composite column name as you said.

【在 g*****g 的大作中提到】
: You want to have the timestamp as column name for indexing purpose.
:
: of
: column
: clock

avatar
g*g
7
He basically wants to do range query on timestamp.

timeuuid

【在 w**z 的大作中提到】
: not sure what he is asking. if he needs timeseries data, then use timeuuid
: as part of composite column name as you said.

avatar
B*g
8
c*如果还没有被彻底删掉,可以用sstable2json自己慢慢找,嘿嘿

【在 t**r 的大作中提到】
: 有懂bigtable ,hbase,c*的么?问一个timestamp的问题
: bigtable里面timestamp的用法在hbase,c*里有么?
: 比如:by specifiying timestamp, I can get value of latest version that is
: earlier than a specified timestamp.

avatar
f*4
9
timestamp怎么同步?就是ntpd也有几十~一百ms的延时。多DC下面怎么搞?
就算不把C*当queue用这return the column with the latest timestamp还是需要
timestamp是正确的才行

【在 g*****g 的大作中提到】
: You want to have the timestamp as column name for indexing purpose.
:
: of
: column
: clock

avatar
g*g
10
Timestamp can be marked on your application cluster. If you are doing mult-
DC and you are sensitive to ms order difference, you are probably doing it
wrong to begin with. i.e. You shouldn't do multi-DC for stock exchange.

【在 f****4 的大作中提到】
: timestamp怎么同步?就是ntpd也有几十~一百ms的延时。多DC下面怎么搞?
: 就算不把C*当queue用这return the column with the latest timestamp还是需要
: timestamp是正确的才行

avatar
f*4
11
好吧,我没讲清楚:C* in case of inconsistency, return the column with the
latest timestamp
C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
要到ms精确度。
App cluster来做timestamp。你在app cluster里面怎么做同步?

【在 g*****g 的大作中提到】
: Timestamp can be marked on your application cluster. If you are doing mult-
: DC and you are sensitive to ms order difference, you are probably doing it
: wrong to begin with. i.e. You shouldn't do multi-DC for stock exchange.

avatar
g*g
12
app cluster 总是 hit一个 node, 自然不用同步。如果你在两个DC同时写同一个
column, 结果的确有不确定性。但通常你不在乎写的是哪个。

【在 f****4 的大作中提到】
: 好吧,我没讲清楚:C* in case of inconsistency, return the column with the
: latest timestamp
: C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
: 要到ms精确度。
: App cluster来做timestamp。你在app cluster里面怎么做同步?

avatar
w*z
13
In most of cases, C* generates timestamp at server side for you. Make sure
your NTP is setup correctly which is a prerequisite for C* cluster
It's not advisable to generate timestamp at client side and pass it in with
your request.

【在 f****4 的大作中提到】
: 好吧,我没讲清楚:C* in case of inconsistency, return the column with the
: latest timestamp
: C*自己解决inconsistency就是假设每个record的timestamp是sync的,这不是我应用需
: 要到ms精确度。
: App cluster来做timestamp。你在app cluster里面怎么做同步?

avatar
g*g
14
Hmm, looks like cql has better support for time uuid now. There's a time
server side time uuid is not available.

with

【在 w**z 的大作中提到】
: In most of cases, C* generates timestamp at server side for you. Make sure
: your NTP is setup correctly which is a prerequisite for C* cluster
: It's not advisable to generate timestamp at client side and pass it in with
: your request.

avatar
f*4
15
我的感觉就是如果你的应用对NTP那100ms左右的误差引起的不一致很敏感的话C*就不是
你正确的选择
C*解决不一致性的时候是没办法100%保证正确的。CAP的trade off。

with

【在 w**z 的大作中提到】
: In most of cases, C* generates timestamp at server side for you. Make sure
: your NTP is setup correctly which is a prerequisite for C* cluster
: It's not advisable to generate timestamp at client side and pass it in with
: your request.

avatar
w*z
16
Or you can try to go down the vector clock hell like Riak.

【在 f****4 的大作中提到】
: 我的感觉就是如果你的应用对NTP那100ms左右的误差引起的不一致很敏感的话C*就不是
: 你正确的选择
: C*解决不一致性的时候是没办法100%保证正确的。CAP的trade off。
:
: with

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。