2017-05-15 9 views
0

상자 버전 : 1.1.3 상자에 데이터를 삽입 한 후 activemq에 키를 보내이 데이터를 즉시 쿼리하지만 불행히도 매번 실패하므로 2000ms 동안 스레드를 잠자 게됩니다.상자에 데이터 쿼리 laterncy를 피하는 방법

psql.enabled: true 
psql.port: 33892 
prepareThreshold: 0 

http.max_content_length: 150mb 
indices.store.throttle.max_bytes_per_sec: 150mb 
threadpool.bulk.type: fixed 
threadpool.bulk.size: 128 
threadpool.bulk.queue_size: 5000 

cluster.name: EIn_Cluster 
node.name: dscn1 
index.number_of_replicas: 2 
path.conf: /home/hadmin/crate/config 
path.data: /home/hadmin/data/crate 
path.work: /home/hadmin/data/crate/tmp 
path.logs: /home/hadmin/data/crate/logs 
path.plugins: /home/hadmin/crate/plugins 
blobs.path: /home/hadmin/data/crate/crate_blob_data/disk 
network.host: 192.168.13.50 
gateway.recover_after_nodes: 3 
discovery.zen.minimum_master_nodes: 3 
gateway.expected_nodes: 3 
discovery.zen.ping.timeout: 10s 
discovery.zen.fd.ping_interval: 10s 
#transport.tcp.port: 4399 
discovery.zen.ping.unicast.hosts: 
    - dscn1:4300 
    - dscn2:4300 
    - dscn3:4300 

멀티 존 설정이 관련이 :이 일을, 내가 클러스터를 추측 여기에 데이터 를 동기화하는 데 시간이 crate.yaml입니다 필요? 또는 일부 설정을 놓치셨습니까? 이

덕분에 상자로

+0

3 노드 클러스터입니다. 영역과 관련이 없습니다. – MayI

답변

1

를 방지하는 방법 는 모든 삽입 된 문서를 조회 할 수 즉시 있으며, 궁극적으로 일치한다. 새/변경된 문서의 가용성은 여러 가지 영향에 따라 다르지만 가장 중요한 것은 refresh_interval (https://crate.io/docs/reference/sql/reference/create_table.html#sql-ref-refresh-interval 참조)입니다. 하지만이 값을 낮추면 처리 성능이 떨어집니다.

refresh table 명령을 사용하여 새로 고칠 수도 있습니다. https://crate.io/docs/reference/sql/refresh.html을 참조하십시오. 삽입이 끊임없이 발생하지 않는 경우 (예 : 삽입 완료 후 새로 고침, 다음 문장 실행 전에) 수행하는 것이 좋습니다.

+0

기본 키로 단일 레코드에 액세스하면 즉시 작동합니다. "일관된 읽기 쓰기" –