我正在尝试设置启用了持久性的Apache Ignite集群。我正在尝试在具有10个节点的Azure Kubernetes上启动群集。问题是集群激活似乎被卡住了,但是我能够在不到5分钟的时间内激活具有3个节点的集群。
这是我用来启动集群的配置:
apiVersion: v1
kind: Service
metadata:
name: ignite-main
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
labels:
main: ignite-main
spec:
type: LoadBalancer
externalTrafficPolicy: Cluster
ports:
- port: 10800 # JDBC port
targetPort: 10800
name: jdbc
- port: 11211 # Activating the baseline (port)
targetPort: 11211
name: control
- port: 8080 # REST port
targetPort: 8080
name: rest
selector:
main: ignite-main
---
#########################################
# Ignite service configuration
#########################################
# Service for discovery of ignite nodes
apiVersion: v1
kind: Service
metadata:
name: ignite
labels:
app: ignite
spec:
clusterIP: None
# externalTrafficPolicy: Cluster
ports:
# - port: 9042 # custom value.
# name: discovery
- port: 47500
name: discovery
- port: 47100
name: communication
- port: 11211
name: control
selector:
app: ignite
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ignite-cluster
labels:
app: ignite
main: ignite-main
spec:
selector:
matchLabels:
app: ignite
main: ignite-main
replicas: 5
template:
metadata:
labels:
app: ignite
main: ignite-main
spec:
volumes:
- name: ignite-storage
persistentVolumeClaim:
claimName: ignite-volume-claim # Must be equal to the PersistentVolumeClaim created before.
containers:
- name: ignite-node
image: ignite.azurecr.io/apacheignite/ignite:2.7.0-SNAPSHOT
env:
- name: OPTION_LIBS
value: ignite-kubernetes
- name: CONFIG_URI
value: https://file-location
- name: IGNITE_H2_DEBUG_CONSOLE
value: 'true'
- name: IGNITE_QUIET
value: 'false'
- name: java.net.preferIPv4Stack
value: 'true'
- name: JVM_OPTS
value: -server -Xms10g -Xmx10g -XX:+AlwaysPreTouch -XX:+UseG1GC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC
ports:
- containerPort: 47100 # communication SPI port number.
- containerPort: 47500 # discovery SPI port number.
- containerPort: 49112 # JMX port number.
- containerPort: 8080 # REST port number.
- containerPort: 10800 # SQL port number.
- containerPort: 11211 # Activating the baseline (port)
imagePullSecrets:
- name: docker-cred
答案 0 :(得分:0)
我试图通过提供./control.sh --host x.x.x.x --activate
参数来远程激活集群,例如:
const clinics = {
"a0CW00000027OX3MAM": {
"id": "a0CW00000027OX3MAM",
"companyName": "Hendrick Medical Center",
"startTime": "2018-08-10T05:30:00.000Z",
},
"a0CW00000026gjJMAQ": {
"id": "a0CW00000026gjJMAQ",
"companyName": "ABC Manufacturing",
"startTime": "2018-08-10T10:36:00.000Z",
},
"a0CW00000026gipMAA": {
"id": "a0CW00000026gipMAA",
"companyName": "ABC Manufacturing",
"startTime": "2018-08-01T10:36:00.000Z",
}
}
相反,我尝试通过登录kubernetes节点之一并从那里激活来激活集群。提到了详细步骤here