Closed rong961 closed 1 year ago
Hi @rong961 ~ Thanks for opening this issue! 🎉
Please make sure you have provided enough information for subsequent discussion.
We will get back to you as soon as possible. ❤️
@rong961 Does this work?
docker run -it \
...
--shm-size=512m \
...
添加这行命令是有效的,感谢,但是在测试的结果上我们发现TP和AP相互干扰较严重,测试是在容器外连接的数据库,TP和AP都连在读写节点的pg上,想问下是什么缘故呢
仅在读写节点运行AP时的查询性能 "Throughput (requests/second)": 0.15982239541273163, "isolation": "TRANSACTION_REPEATABLE_READ", "scalefactor": "10", "terminals": "2"
在读写节点同时运行TP和AP时的查询性能 "Throughput (requests/second)": 0.028856822919917844, "isolation": "TRANSACTION_REPEATABLE_READ", "scalefactor": "10", "terminals": "2"
@rong961 Currently, we haven't implement any resource isolation between TP workload and AP workload, so they do interfere each other, because they will use the same hardware resources, and acquire locks on the same table if necessary.
Ideally, we recommend to make TP and AP isolated physically, which looks like: use RW and several RO to work on TP workloads, and use RW and several other RO to work on AP workloads. A proxy may be helpful to implement this isolation.
/close
运行HTAP测试的时候出现ERROR: could not resize shared memory segment
首先,我们使用oltpbench运行polardb的测试前,测试了读写节点和所有只读节点前的连通性,可以通过psql -h -p -Upostgres postgres登录
然后我们在读写节点上运行TP事务,在其中一个读写节点上运行AP查询(猜测只读节点之间会自动平衡负载),TP和AP中数据库的连接均填写了读写节点的ip,运行过程中,读写节点没有出现错误,而AP执行中出现以下错误
根据这个问题,我们尝试了修改docker容器的shm_size,停下容器修改配置文件和重启容器时附带配置两种方式均没有能够成功修改这个值,想问下是我运行的方式不正确吗,还是需要修改某个特定参数呢