polardb / polardbx-sql

PolarDB-X is a cloud native distributed SQL Database designed for high concurrency, massive storage, complex querying scenarios.
Apache License 2.0
1.51k stars 321 forks source link

How to deploy a cluster version based on the source code installation #55

Open linzhi123 opened 2 years ago

linzhi123 commented 2 years ago

After successful compilation through the source code, how can I configure, I can deploy a cluster version

hustfxj commented 2 years ago

you can insert the cluster CN (port ip etc) into the table server_info which is in MetaDB.

For example,

insert into server_info(inst_id, inst_type, ip, port, htap_port, mgr_port, mpp_port, status, region_id, azone_id, idc_id, cpu_core, mem_size) values ('polardbx-polardbx', 0, 'your ip', 7527, 7527, 7627, 7090, 1, '0', '0', '0', 1, 1);

insert into server_info(inst_id, inst_type, ip, port, htap_port, mgr_port, mpp_port, status, region_id, azone_id, idc_id, cpu_core, mem_size) values ('polardbx-polardbx', 0, 'your ip', 8527, 8527, 8627, 8090, 1, '0', '0', '0', 1, 1);
VlayK0 commented 2 years ago

Could I us product SN instead