Hi, team, we are trying to deploy shared data star...
# questions-and-troubleshooting
t
Hi, team, we are trying to deploy shared data starrocks cluster using starrocks operator. The FE nodes and 3 CN nodes are up and running, however, FE seems unable to recognize this is a cluster with CN nodes, and keep complaining
Copy code
Failed to create sample statistics,
com.starrocks.common.NoAliveBackendException: No alive backend
	at com.starrocks.common.util.AutoInferUtil.calDefaultReplicationNum(AutoInferUtil.java:31) ~[starrocks-fe.jar:?]
	at com.starrocks.statistic.StatisticsMetaManager.createSampleStatisticsTable(StatisticsMetaManager.java:147) ~[starrocks-fe.jar:?]
	at com.starrocks.statistic.StatisticsMetaManager.createTable(StatisticsMetaManager.java:402) ~[starrocks-fe.jar:?]
	at com.starrocks.statistic.StatisticsMetaManager.refreshStatisticsTable(StatisticsMetaManager.java:484) ~[starrocks-fe.jar:?]
	at com.starrocks.statistic.StatisticsMetaManager.runAfterCatalogReady(StatisticsMetaManager.java:514) ~[starrocks-fe.jar:?]
	at com.starrocks.common.util.FrontendDaemon.runOneCycle(FrontendDaemon.java:72) ~[starrocks-fe.jar:?]
	at com.starrocks.common.util.Daemon.run(Daemon.java:98) ~[starrocks-fe.jar:?]
Could someone helps us debug?
k
must be deployed as
shared-nothing
cluster, have a check of the configuration by sql
admin show frontend config like 'run_mode'
t
[42000][1064] Getting syntax error at line 1, column 44. Detail message: No viable statement for input 'show frontend'.
The only flag i could find regarding be mode vs cn mode is this
Copy code
starrocksCluster:
    # the name of starrockscluster cluster, if not set, the value of nameOverride fields will be used.
    name: ""
    # the namespace of starrockscluster cluster, if not set, the release namespace will be used.
    namespace: ""
    # annotations for starrocks cluster.
    annotations: {}
    # specify the BE/CN deployment or not.
    enabledBe: false
    enabledCn: true
As you can see, we have disabled be mode
Is there any FE config or CN config that needs to be tuned to enable shared-data?
t
Looking at the example config here for shared data, I am assuming that configs such as
run_mode
is required on fe.config in order to run in shared data mode right? Unfortunately i cannot share the yaml directly, too many company specific info inside
Seems
run_mode = shared_nothing
is default, thats probably why https://docs.starrocks.io/docs/deployment/shared_data/s3#run_mode
d
I will add a quick start using shared data and helm to the docs.
❤️ 1
t
One more question regarding S3 related configs on FE: Whats the purpose of this? In shared-nothing, FE stores metadata and logs on disks (if configured properly). Does this change in shared-data mode (e.g. FE leader metadata is stored on S3 instead, or configurable to do so)?
Also after reading https://docs.starrocks.io/docs/deployment/shared_data/s3#use-your-shared-data-starrocks-cluster it sounds like all cluster-wide configs should be stored under
fe.conf
,
cn.conf
is only for communication properties with FE nodes. Is that correct?
Additionally, there is no page specifying CN configurations https://docs.starrocks.io/docs/3.5/administration/management/configuration/ CN configurations are hidden under BE configurations - shared-data instead of a separated page