readonly db notworking
clcc2019 opened this issue · comments
![image](https://private-user-images.githubusercontent.com/46099295/326353266-2ef0208b-9332-4ee7-81d6-17a119b00675.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxOTcwNzgsIm5iZiI6MTcyMzE5Njc3OCwicGF0aCI6Ii80NjA5OTI5NS8zMjYzNTMyNjYtMmVmMDIwOGItOTMzMi00ZWU3LTgxZDYtMTdhMTE5YjAwNjc1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDA5NDYxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1YTBhYzdlMmZjMDg3YjA1ZDBjOTQzNTFlMTYyMzdjMmE3MDdhMjAxZWYwNGY0ZWJhMGNkODFkYTJkZTRjZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FMoPPMaxJOp9w6wFRA6Z3FTFZRNEsoFAqPDZPyVFcWA)
apiVersion: polardbx.aliyun.com/v1
kind: XStore
metadata:
name: polardb-readonly
spec:
config:
controller:
RPCProtocolVersion: 1
engine: {}
readonly: true
primaryXStore: polardb-master # 主实例名
topology:
nodeSets:
- name: readonly
replicas: 1
role: Learner
template:
spec:
image: image
resources:
limits:
cpu: "2"
memory: 8Gi
requests:
cpu: "2"
memory: 4Gi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
xstore/node-role: candidate
topologyKey: kubernetes.io/hostname
weight: 1
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: mks.components
operator: In
values:
- "enable"
weight: 1
hostNetwork: false
parameterTemplate:
name: product-8032
serviceType: ClusterIP
@clcc2019 Even though we haven't declared support for this feature in our documentation yet, I'm really excited to see you are trying to create a read-only instance for XStore.
For help, please provide the following info:
kubectl get pods
kubectl get xstore
- polardb-readonly yaml file
@clcc2019 Even though we haven't declared support for this feature in our documentation yet, I'm really excited to see you are trying to create a read-only instance for XStore.
For help, please provide the following info:
kubectl get pods
kubectl get xstore
- polardb-readonly yaml file
![image](https://private-user-images.githubusercontent.com/46099295/326631746-f61e958e-a44e-48fb-8e5f-2a1d6f9a607a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxOTcwNzksIm5iZiI6MTcyMzE5Njc3OSwicGF0aCI6Ii80NjA5OTI5NS8zMjY2MzE3NDYtZjYxZTk1OGUtYTQ0ZS00OGZiLThlNWYtMmExZDZmOWE2MDdhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA5VDA5NDYxOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxNzUxNzE5NjVkZTRiZWQzZjQ5OTg5MGExMjcyNThmOTE3OTE1OGNmZWI3Mjk0NGNhODg0OGFlZmI5YjU2ZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5KiTLfew84bAileoqFDwPw5GsrshPGDDGih7EE9Icl4)
apiVersion: polardbx.aliyun.com/v1
kind: XStore
metadata:
creationTimestamp: "2024-04-29T06:50:26Z"
finalizers:
- xstore/finalizer
generation: 2
name: polardb-readonly
namespace: my-gpaas
resourceVersion: "4060697"
uid: c3e7edfb-4a36-4f17-8aa6-697c912d28ae
spec:
config:
controller:
RPCProtocolVersion: 1
engine: {}
engine: galaxy
parameterTemplate:
name: product-8032
primaryXStore: polardb-master
readonly: true
serviceName: polardb-readonly
serviceType: ClusterIP
tde:
enable: false
keyringPath: /data/mysql/mysql-keyring/keyring
topology:
nodeSets:
- name: readonly
replicas: 1
role: Learner
template:
metadata: {}
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: mks.components
operator: In
values:
- enable
weight: 1
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
xstore/node-role: candidate
topologyKey: kubernetes.io/hostname
weight: 1
hostNetwork: false
image: polardbx/polardbx-engine-2.0:80-8.0.18-202404091343
resources:
limits:
cpu: "4"
memory: 8Gi
requests:
cpu: "2"
memory: 4Gi
template:
metadata: {}
spec:
hostNetwork: false
upgradeStrategy: BestEffort
have a little doubt, I have the same deployment cr. The version deployed on the x86 architecture is v8.0.30, and the read-only instance runs normally after restarting multiple times. The version deployed on the arm64 architecture is 8.0.18, and the read-only instance cannot run.
Do you set the same image tag in x86 and arm64 environment?
have a little doubt, I have the same deployment cr. The version deployed on the x86 architecture is v8.0.30, and the read-only instance runs normally after restarting multiple times. The version deployed on the arm64 architecture is 8.0.18, and the read-only instance cannot run.
Do you set the same image tag in x86 and arm64 environment?
yes