-
Notifications
You must be signed in to change notification settings - Fork 128
[ISSUE #65]Add RocketMQ-on-DLeger group mode deploy #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,17 @@ function create_config() { | |
| if [ $BROKER_ID != 0 ]; then | ||
| sed -i 's/brokerRole=.*/brokerRole=SLAVE/g' $BROKER_CONFIG_FILE | ||
| fi | ||
|
|
||
| # Enable RocketMQ-on-DLedger Group | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The shell test |
||
| if [ ! -z $ENABLE_DLEGER ]; then | ||
| echo "enableDLegerCommitLog=true" >> $BROKER_CONFIG_FILE | ||
| echo "dLegerGroup=$BROKER_NAME" >> $BROKER_CONFIG_FILE | ||
| echo "dLegerPeers=$DLEGER_PEERS" >> $BROKER_CONFIG_FILE | ||
| echo "dLegerSelfId=$DLEGER_SELF_ID" >> $BROKER_CONFIG_FILE | ||
| if [ ! -z $DLEGER_THREAD_NUM ]; then | ||
| echo "sendMessageThreadPoolNums=$DLEGER_THREAD_NUM" >> $BROKER_CONFIG_FILE | ||
| fi | ||
| fi | ||
| } | ||
|
|
||
| create_config | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,14 +34,18 @@ type BrokerSpec struct { | |
| Size int `json:"size"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No test changes detected alongside source modifications. Consider adding tests to cover the changes. |
||
| // NameServers defines the name service list e.g. 192.168.1.1:9876;192.168.1.2:9876 | ||
| NameServers string `json:"nameServers,omitempty"` | ||
| // Whether enable rocketmq-on-dleger group deploy, false in default | ||
| EnableDLeger bool `json:"enableDLeger"` | ||
| // ReplicaPerGroup each broker cluster's replica number | ||
| ReplicaPerGroup int `json:"replicaPerGroup"` | ||
| // BaseImage is the broker image to use for the Pods | ||
| BrokerImage string `json:"brokerImage"` | ||
| // ImagePullPolicy defines how the image is pulled | ||
| ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy"` | ||
| // AllowRestart defines whether allow pod restart | ||
| AllowRestart bool `json:"allowRestart"` | ||
| AllowRestart bool `json:"allowRestart"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Affinity corev1.Affinity `json:"affinity"` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| Tolerations []corev1.Toleration `json:"tolerations"` | ||
| // Resources describes the compute resource requirements | ||
| Resources corev1.ResourceRequirements `json:"resources"` | ||
| // StorageMode can be EmptyDir, HostPath, StorageClass | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README documents
enableDLeger: falseas optional with an implicit default, but the CRD schema marks the field as required and does not declare a default value. The documented behavior does not match the schema.