<@U0A71G31CDV> How do I deploy the 4.1.8 version v...
# questions-and-troubleshooting
a
@Rocky How do I deploy the 4.1.8 version via stargo?
r
The official StarGo doc (
administration/stargo.md
) covers deployment generally — it isn't version-specific, so here's the flow with 4.1.8 plugged in. 1. Install StarGo on the central control node
Copy code
shell
wget https://github.com/wangtianyi2004/starrocks-controller/raw/main/stargo-pkg.tar.gz
wget https://github.com/wangtianyi2004/starrocks-controller/blob/main/sr-c1.yaml
wget https://github.com/wangtianyi2004/starrocks-controller/blob/main/repo.yaml
chmod 751 sr-ctl
sr-ctl
is the prebuilt binary (no install step).
sr-c1.yaml
is the topology template and
repo.yaml
configures the download path for the StarRocks installer. The doc notes you can reach
http://cdn-thirdparty.starrocks.com
for the matching installation index files and installers. 2. Prerequisites • At least one central control node + three deployment nodes (all can be on one machine). • StarGo installed on the central control node. • Mutual SSH auth between the control node and each deployment node:
Copy code
shell
ssh-keygen
ssh-copy-id starrocks@r1   # repeat for r2, r3
ssh starrocks@r1 date      # verify
3. Create the topology file Base it on the
sr-c1.yaml
template —
global
(user, ssh_port),
fe_servers
(host, http_port 8030, rpc_port 9020, query_port 9030, edit_log_port 9010,
deploy_dir
,
meta_dir
,
log_dir
,
priority_networks
,
config
), and
be_servers
(be_port 9060, be_http_port 8040, heartbeat_service_port 9050, brpc_port 8060,
deploy_dir
,
storage_dir
,
log_dir
,
priority_networks
,
config
). Optionally pre-create directories — if they don't exist StarGo creates them, but they must match `meta_dir`/`storage_dir` exactly:
Copy code
shell
mkdir -p StarRocks/fe/meta     # on FE nodes
mkdir -p StarRocks/be/storage  # on BE nodes
4. Deploy
Copy code
shell
./sr-ctl cluster deploy <cluster_name> v4.1.8 <topology_file>
Parameters:
cluster_name
,
version
,
topology_file
. On success the cluster starts automatically — check
beStatus
and
feStatus
are both
true
. Verify with
./sr-ctl cluster display <cluster_name>
or
mysql -h 127.0.0.1 -P9030 -uroot
. Caveats I can't verify from the docs • Version string format: the doc's examples use
v2.0.1
,
v2.1.3
(with the
v
prefix), so
v4.1.8
is my inference for the 4.1.8 form — I could not confirm it in the docs. • 4.1.x support: the StarGo doc gives no version support matrix, and its examples are all 2.x-era. Whether StarGo's
repo.yaml
index includes a 4.1.8 installer (and therefore whether you can
deploy
, or must
upgrade
an existing cluster with
./sr-ctl cluster upgrade <cluster_name> v4.1.8
) is worth verifying against your
repo.yaml
/ the CDN index before you run it. • 4.1.8 release notes are here if you want to review behavior changes before deploying: they include fixes that change query results after upgrade (e.g. materialized view partitions,
bool_or
over NULLs, Iceberg partition evolution,
convert_tz
, negated
MATCH
). Some existing materialized views must be recreated to be repaired (the
*ROW_ID*
collision fix). If StarGo's index doesn't carry 4.1.8, better places to ask are the StarRocks GitHub repo / releases page or the community Slack. References • administration/stargo.md • release_notes/release-4.1.md • deployment/sr_operator.md • deployment/manage_deployment/upgrade.md