Skip to content

Commit

Permalink
Use IP address as Bookie ID (#117)
Browse files Browse the repository at this point in the history
Signed-off-by: Adrián Moreno <[email protected]>
  • Loading branch information
adrianmo authored Jan 14, 2019
1 parent 9990154 commit 3c7ea47
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pkg/controller/pravega/bookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,14 @@ func makeBookieVolumeClaimTemplates(spec *v1alpha1.BookkeeperSpec) []corev1.Pers

func MakeBookieConfigMap(pravegaCluster *v1alpha1.PravegaCluster) *corev1.ConfigMap {
configData := map[string]string{
"BK_BOOKIE_EXTRA_OPTS": "-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB",
"ZK_URL": pravegaCluster.Spec.ZookeeperUri,
"BK_useHostNameAsBookieID": "true",
"BK_BOOKIE_EXTRA_OPTS": "-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC -XX:-ResizePLAB",
"ZK_URL": pravegaCluster.Spec.ZookeeperUri,
// Using IP address as the Bookie ID until Pravega's BookKeeper is update to, at least,
// version 4.7, which assumes that hostnames can resolve to different IP addresses
// over time.
// Operator issue: https://github.com/pravega/pravega-operator/issues/116
// Pravega PR to update BK: https://github.com/pravega/pravega/pull/3192
"BK_useHostNameAsBookieID": "false",
"PRAVEGA_CLUSTER_NAME": pravegaCluster.ObjectMeta.Name,
"WAIT_FOR": pravegaCluster.Spec.ZookeeperUri,
}
Expand Down

0 comments on commit 3c7ea47

Please sign in to comment.