Redian新闻
>
怎么synchronize时间捏
avatar
怎么synchronize时间捏# Java - 爪哇娇娃
g*6
1
去年有种出黑心的,或者畸形的
他们说是移栽的原因
倒是萝卜能不能移栽啊?
avatar
k*r
2
有几台机器在不同的data center,需要比较准时地在整点向服务器
报告,前后差一两分钟问题不大。但是本机的时间不能保证,而且
不能调整,只能在Application起来的时候从网上拿一个比较准的时
间而不依赖系统时间。有什么NTP component推荐吗?或者有什么
free的报告时间的web service?
avatar
R*G
3
移植的成功率太低,不移为好。
前两天实验了一下,没有移植的5片叶了,移过的死了一大半。
avatar
g*g
5
Counting on external web service for a task like this is a
bad idea. You may get system time from the same DB server and
most DB servers support that.

【在 k***r 的大作中提到】
: 有几台机器在不同的data center,需要比较准时地在整点向服务器
: 报告,前后差一两分钟问题不大。但是本机的时间不能保证,而且
: 不能调整,只能在Application起来的时候从网上拿一个比较准的时
: 间而不依赖系统时间。有什么NTP component推荐吗?或者有什么
: free的报告时间的web service?

avatar
m*t
6
Why not just put ntpdate in a cronjob?

【在 k***r 的大作中提到】
: 有几台机器在不同的data center,需要比较准时地在整点向服务器
: 报告,前后差一两分钟问题不大。但是本机的时间不能保证,而且
: 不能调整,只能在Application起来的时候从网上拿一个比较准的时
: 间而不依赖系统时间。有什么NTP component推荐吗?或者有什么
: free的报告时间的web service?

avatar
F*n
7
Try to separate clock synchronization and program synchronization. On each
workstation install a timer synchronized to a timer service. Use the local
timer to synchronize local program.

【在 k***r 的大作中提到】
: 找到一个webservice,奇怪的是getUTCTime只返回时间没有日期
: http://www.nanonull.com/TimeService/TimeService.asmx

avatar
k*r
8
A mix of unix and Windows machines makes it a little messy.
Plus, I'm not supposed to touch the local clock.

【在 m******t 的大作中提到】
: Why not just put ntpdate in a cronjob?
avatar
k*r
9
In my case, the DB server isn't exposed. Although I can
provide a web service to wrap the DB time but I'm assuming
using an external web service is even easier, unless it's
not reliable...

【在 g*****g 的大作中提到】
: Counting on external web service for a task like this is a
: bad idea. You may get system time from the same DB server and
: most DB servers support that.

avatar
g*g
10
If it's not a paid service with 99.9% guarranteed up time,
it's not reliable. Anything can break will break.
If it's a critical service for the product and you can't
deliver because a free service you happen to find on Internet
is broken. You'll look very bad.
And I don't get that the DB Server isn't exposed. Can't you
get it through SQL query although it may vary from vendor to
vendor.

【在 k***r 的大作中提到】
: In my case, the DB server isn't exposed. Although I can
: provide a web service to wrap the DB time but I'm assuming
: using an external web service is even easier, unless it's
: not reliable...

avatar
k*r
11
The reliability of a free service is a concern.
Using a time web service provided by my server is probably
a good idea - it needs to report to my server anyway. Just
a little bit more work to do.
Thanks for the suggestions!

【在 g*****g 的大作中提到】
: If it's not a paid service with 99.9% guarranteed up time,
: it's not reliable. Anything can break will break.
: If it's a critical service for the product and you can't
: deliver because a free service you happen to find on Internet
: is broken. You'll look very bad.
: And I don't get that the DB Server isn't exposed. Can't you
: get it through SQL query although it may vary from vendor to
: vendor.

avatar
g*g
12
It's a DB server, why can't you use oldschool SQL query to get it,
web service sounds overkill for me.

【在 k***r 的大作中提到】
: The reliability of a free service is a concern.
: Using a time web service provided by my server is probably
: a good idea - it needs to report to my server anyway. Just
: a little bit more work to do.
: Thanks for the suggestions!

avatar
k*r
13
Let's say, the servers that need to report back are on customers'
sites and the only interface for it to ping home is HTTP.
By web service I meant it in a generic way. It could be a web
page that simply prints out "11/19/2008 18:24:30".

【在 g*****g 的大作中提到】
: It's a DB server, why can't you use oldschool SQL query to get it,
: web service sounds overkill for me.

avatar
r*l
14
Is there an operation team in your company that
maintenance the machine and the OS?
It's ops responsibility to make the server time
accurate.

【在 k***r 的大作中提到】
: A mix of unix and Windows machines makes it a little messy.
: Plus, I'm not supposed to touch the local clock.

avatar
r*l
15
And have Java read the local time.

【在 r*****l 的大作中提到】
: Is there an operation team in your company that
: maintenance the machine and the OS?
: It's ops responsibility to make the server time
: accurate.

avatar
k*r
16
Some of the machines belong to, let's say, some
customers, that don't guarantee to keep up the time
on the servers. So I can't rely on local time...

【在 r*****l 的大作中提到】
: Is there an operation team in your company that
: maintenance the machine and the OS?
: It's ops responsibility to make the server time
: accurate.

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