2017-03-02 22 views
1

私の航空宇宙データベースに大量のデータを追加した後、多くのデータが消えます。 私はTTLと退去を無効にしようとしました。しかし何も働かなかった。 現在、私はデフォルト設定を使用しています。Aerospikeのデータが消失しました

namespace test { 
    replication-factor 2 
    memory-size 4G 
    default-ttl 30d # 30 days, use 0 to never expire/evict. 
    storage-engine memory 
} 

保存256.408オブジェクト(24%メモリ使用量)がある、いくつかの分後にのみ133.294オブジェクト(13%メモリ使用量)が あります。 13,229オブジェクトが期限切れになった(正しいと思われる) 0オブジェクトが追放されました

データにはどのような問題がありますか?

Admin> asinfo 

1 : node 
    BB9E091CB7AC40C 
2 : statistics 
    cluster_size=1;cluster_key=DCF17F353E9E73A7;cluster_integrity=true;uptime=545;system_free_mem_pct=79;system_swapping=false;heap_allocated_kbytes=1654377;heap_active_kbytes=1863852;heap_mapped_kbytes=2336768;heap_efficiency_pct=71;objects=133295;sub_objects=0;tombstones=0;tsvc_queue=0;info_queue=0;delete_queue=0;rw_in_progress=0;proxy_in_progress=0;tree_gc_queue=0;client_connections=31;heartbeat_connections=0;fabric_connections=0;heartbeat_received_self=3635;heartbeat_received_foreign=0;reaped_fds=0;info_complete=9935;proxy_retry=0;demarshal_error=0;early_tsvc_client_error=0;early_tsvc_batch_sub_error=0;early_tsvc_udf_sub_error=0;batch_index_initiate=0;batch_index_queue=0:0,0:0,0:0,0:0;batch_index_complete=0;batch_index_error=0;batch_index_timeout=0;batch_index_unused_buffers=0;batch_index_huge_buffers=0;batch_index_created_buffers=0;batch_index_destroyed_buffers=0;batch_initiate=0;batch_queue=0;batch_error=0;batch_timeout=0;scans_active=0;query_short_running=0;query_long_running=0;sindex_ucgarbage_found=0;sindex_gc_locktimedout=0;sindex_gc_inactivity_dur=0;sindex_gc_activity_dur=0;sindex_gc_list_creation_time=0;sindex_gc_list_deletion_time=0;sindex_gc_objects_validated=0;sindex_gc_garbage_found=0;sindex_gc_garbage_cleaned=0;paxos_principal=BB9E091CB7AC40C;migrate_allowed=true;migrate_partitions_remaining=0;fabric_bulk_send_rate=0;fabric_bulk_recv_rate=0;fabric_ctrl_send_rate=0;fabric_ctrl_recv_rate=0;fabric_meta_send_rate=0;fabric_meta_recv_rate=0;fabric_rw_send_rate=0;fabric_rw_recv_rate=0 
3 : features 
    peers;cdt-list;cdt-map;pipelining;geo;float;batch-index;replicas-all;replicas-master;replicas-prole;udf 
4 : cluster-generation 
    0 
5 : partition-generation 
    1 
6 : build_time 
    Wed Feb 15 21:57:43 UTC 2017 
7 : edition 
    Aerospike Community Edition 
8 : version 
    Aerospike Community Edition build 3.11.1.1 
9 : build 
    3.11.1.1 
10 : services 

11 : services-alumni 

12 : build_os 
    debian8 

Admin> info namespace 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Information~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Namespace    Node Avail% Evictions     Master    Replica  Repl  Stop  Pending  Disk Disk  HWM   Mem  Mem HWM  Stop 
     .     .  .   . (Objects,Tombstones) (Objects,Tombstones) Factor Writes Migrates  Used Used% Disk%   Used Used% Mem% Writes% 
     .     .  .   .      .      .  .  . (tx%,rx%)   .  .  .   .  .  .   . 
test  development1:3000 N/E  0.000  (256.408 K,0.000 ) (0.000 ,0.000 )  1  false (0,0)   N/E N/E  50  971.808 MB 24  60  90 
test          0.000  (256.408 K,0.000 ) (0.000 ,0.000 )      (0,0)  0.000 B     971.808 MB 
Number of rows: 2 

Admin> info namespace 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Information~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Namespace    Node Avail% Evictions     Master    Replica  Repl  Stop  Pending  Disk Disk  HWM   Mem  Mem HWM  Stop 
     .     .  .   . (Objects,Tombstones) (Objects,Tombstones) Factor Writes Migrates  Used Used% Disk%   Used Used% Mem% Writes% 
     .     .  .   .      .      .  .  . (tx%,rx%)   .  .  .   .  .  .   . 
test  development1:3000 N/E  0.000  (133.294 K,0.000 ) (0.000 ,0.000 )  1  false (0,0)   N/E N/E  50  506.382 MB 13  60  90 
test          0.000  (133.294 K,0.000 ) (0.000 ,0.000 )      (0,0)  0.000 B     506.382 MB 
Number of rows: 2 
+1

名前空間に関する完全な統計情報を提供できますか。コマンド:asinfo -v "namespace/test" – sunil

+1

@DerCoderもまたこの投稿を:https://discuss.aerospike.com/t/aerospike-data-expire/3329/6に掲載しました。解決済みの問題は、コード、Aerospike正常に動作します。 – pgupta

+0

@DerCoder、何が問題になったのか分かりませんか? https://m.xkcd.com/979/ – kporter

答えて

1

1 - どのようにオブジェクトを挿入していますか?オブジェクトを挿入するときにデフォルトのTTLを変更していますか? 30dのデフォルトのttlでは、オブジェクトを期限切れにすべきではありません(133Kに落とす256Kオブジェクトの間でinfoコマンドをかなり素早く実行したと仮定します)。あなたのオブジェクトのサイズは?

2 - あなたは$grep thr_nsup /var/log/aerospike/aerospike.logとポスト出力できますか?

3 - あなたはあなたの助け$asinfo -v "namespace/test"

1

のTHX出力を投稿することができます。私は自分のコードでこの問題を発見しました。 Aerospikeは正常に動作しています。 この「間違った」アラートには申し訳ありません。D

関連する問題