Skip to content

Commit

Permalink
Merge pull request #3 from caishunfeng/fix/readme
Browse files Browse the repository at this point in the history
Fix README and add log
  • Loading branch information
EricGao888 authored Sep 20, 2022
2 parents c124cec + 4c24593 commit 7a1abfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ kubectl apply -f config/ds/zookeeper

If you have pv and pvc, you can config it in `config/sameples`.

Or you can create it with `config/ds/ds-pv.yaml` and `config/configmap/ds-pvc.yaml`.
Or you can create it with `config/ds/ds-pv.yaml` and `config/ds/ds-pvc.yaml`.
Notice to replace the `hostPath.path` in `ds-pv.yaml`.

And you can mount the lib in dolphinscheduler `/opt/soft` in config/samples/ds_v1alpha1_dsworker.yaml with paramter named lib_pvc_name
Expand Down Expand Up @@ -107,5 +107,5 @@ make build && make manifests && make install && make deploy
```shell
cd config/samples
kubectl apply -f ds_v1alpha1_dsalert.yaml
kubectl apply -f ds_v1alpha1_api.yaml -f ds_v1alpha1_dsmaster.yaml -f ds_v1alpha1_dsworker.yaml
kubectl apply -f ds_v1alpha1_dsapi.yaml -f ds_v1alpha1_dsmaster.yaml -f ds_v1alpha1_dsworker.yaml
```
2 changes: 2 additions & 0 deletions controllers/dsworker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ func (r *DSWorkerReconciler) ensureScaled(ctx context.Context, cluster *dsv1alph
return true, err
}

workerLogger.Info("before scale", "podMemberSet", len(ms), "replicas", cluster.Spec.Replicas)

// Scale up
if len(ms) < cluster.Spec.Replicas {
err = r.createMember(ctx, cluster)
Expand Down

0 comments on commit 7a1abfb

Please sign in to comment.