LoginSignup
2
2

More than 5 years have passed since last update.

Aerospikeのログがやっとこさローカルタイムで出るようになった

Posted at

設定はserviceスタンザに書いてください。
log-local-time true を入れるだけ
v3.7.0.1からです

[root@aero01 ~]# cat /etc/aerospike/aerospike.conf | head -20
# Aerospike database configuration file.

service {
        user root
        group root
        paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
        pidfile /var/run/aerospike/asd.pid
        service-threads 4
        transaction-queues 4
        transaction-threads-per-queue 4
        proto-fd-max 15000
        log-local-time true
}


あとはこんな感じでログが日本時間で出てますね^^

[root@aero01 ~]# cat /etc/aerospike/aerospike.conf  | grep log-local-time
log-local-time true
[root@aero01 ~]# date
2015年 12月 27日 日曜日 12:52:44 JST
[root@aero01 ~]# tail  /var/log/aerospike/aerospike.log
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (thr_info.c::5117)    tree_counts: nsup 0 scan 0 dup 0 wprocess 0 migrx 1366 migtx 0 ssdr 0 ssdw 0 rw 0
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (thr_info.c::5133) {test} disk inuse: 0 memory inuse: 27495216 (bytes) sindex memory inuse: 0 (bytes) avail pct 100
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (thr_info.c::5191) {test} migrations - remaining (0 tx, 1288 rx), active (0 tx, 2 rx), 52.21% complete
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (thr_info.c::5200)    partitions: actual 730 sync 677 desync 1288 zombie 0 absent 1401
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: reads (0 total) msec
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: writes_master (0 total) msec
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: proxy (0 total) msec
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: udf (0 total) msec
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: query (0 total) msec
Dec 27 2015 12:52:45 GMT+0900: INFO (info): (hist.c::137) histogram dump: query_rec_count (0 total) count

参考URL

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2