Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PD独立启动或部署文档 #1041

Open
qiangyin opened this issue Nov 20, 2023 · 1 comment
Open

PD独立启动或部署文档 #1041

qiangyin opened this issue Nov 20, 2023 · 1 comment

Comments

@qiangyin
Copy link

想体验一下PD独立部署,没有看到独立启动或部署文档,能否补充一下?

@zxuanhong
Copy link
Contributor

zxuanhong commented Mar 5, 2024

@qiangyin 我已经测试过。具体如下:

  1. 此处pd独立部署
image
  1. 对应store node部署
image
  1. 这里面有个问题要特别注意,pdGroupId,该数据为: 集群id+'-'+pd分区id(默认分区id为-1),因此示例配置文件pdGroupId填写的是:pd_test--1(集群id:pd_test,默认pd分区:-1)。可通过如下代码更改(其中storeOpts为StoreEngineOptions配置):
RegionEngineOptions regionEngineOptions = new RegionEngineOptions();
regionEngineOptions.setRegionId(1L);
regionEngineOptions.setServerAddress(new Endpoint("127.0.0.1", 9182));
storeOpts.setRegionEngineOptionsList(List.of(regionEngineOptions));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants