【发布时间】:2018-04-11 10:34:48
【问题描述】:
我有命名空间“test”并设置“demo” 当我在 aql 终端中运行“select * from test.demo”时,出现此错误。究竟是什么原因导致管道破裂?
我在下面的服务器日志中收到一条警告消息。
我的 aerospike.conf 是:
service {
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
proto-fd-max 15000
}
logging {
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
port 3000
}
heartbeat {
mode multicast
multicast-group 239.1.99.222
port 9918
# To use unicast-mesh heartbeats, remove the 3 lines above, and see
# aerospike_mesh.conf for alternative.
interval 150
timeout 10
}
fabric {
port 3001
}
info {
port 3003
}
}
namespace test {
replication-factor 2
memory-size 4G
default-ttl 30d # 30 days, use 0 to never expire/evict.
storage-engine memory
}
namespace bar {
replication-factor 2
memory-size 4G
default-ttl 30d # 30 days, use 0 to never expire/evict.
storage-engine memory
# To use file storage backing, comment out the line above and use the
# following lines instead.
# storage-engine device {
# file /opt/aerospike/data/bar.dat
# filesize 16G
# data-in-memory true # Store data in memory in addition to file.
# }
}
有人能找出原因吗?
【问题讨论】:
-
aql 在下面使用 C 客户端。 C 客户端中的错误 -10 是:AEROSPIKE_ERR_CONNECTION 同步连接错误。套接字读取错误 11:资源暂时不可用 - 想知道为什么会这样。
-
服务器日志中有什么有趣的地方吗?
-
@Meher,嗨 Meher,我刚刚在服务器日志中收到如下警告。 2018 年 4 月 12 日 06:07:58 GMT: 警告 (proto): (proto.c:693) 发送错误 - fd 29 Broken pipe
-
你在 aql 中设置的超时时间是多少?
-
@Darian.miao 是否有可能在您的命名空间中确实有很多没有与之关联的记录?这会减慢您发出的扫描,然后会导致客户端超时。但是,如果您真的只有这 2 组中的那 2 条记录,那么我不确定是什么原因造成的...您能显示命名空间中的记录总数吗?
标签: aerospike