Skip to content

Commit

Permalink
Issue 411: Updating Pravega configuration key names (#416)
Browse files Browse the repository at this point in the history
* Issue 411: Updating Pravega config key names

Signed-off-by: SrishT <[email protected]>

* Issue 411: Addressing review comments

Signed-off-by: SrishT <[email protected]>

* Issue 411: Addressing review comments

Signed-off-by: SrishT <[email protected]>

Co-authored-by: SrishT <[email protected]>
  • Loading branch information
SrishT and SrishT authored Jul 6, 2020
1 parent 302d40a commit 28b2c5a
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 61 deletions.
2 changes: 1 addition & 1 deletion charts/pravega/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ storage:
className: standard

options:
# bookkeeper.bkAckQuorumSize: "3"
# bookkeeper.ack.quorum.size: "3"
10 changes: 5 additions & 5 deletions doc/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ spec:
...
pravega:
options:
controller.auth.enabled: "true"
controller.auth.userPasswordFile: "/etc/auth-passwd-volume/userdata.txt"
controller.auth.tokenSigningKey: "secret"
autoScale.authEnabled: "true"
autoScale.tokenSigningKey: "secret"
controller.security.auth.enable: "true"
controller.security.pwdAuthHandler.accountsDb.location: "/etc/auth-passwd-volume/userdata.txt"
controller.security.auth.delegationToken.signingKey.basis: "secret"
autoScale.controller.connect.security.auth.enable: "true"
autoScale.security.auth.token.signingKey.basis: "secret"
pravega.client.auth.token: "YWRtaW46MTExMV9hYWFh"
pravega.client.auth.method: "Basic"
Expand Down
2 changes: 1 addition & 1 deletion doc/longtermstorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Pravega can also use an S3-compatible storage backend such as [Dell EMC ECS](htt
```
...
spec:
longtermStorage:
longtermStorage:
ecs:
configUri: http://10.247.10.52:9020?namespace=pravega
bucket: "shared"
Expand Down
46 changes: 23 additions & 23 deletions doc/minikube_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,26 @@ Create a single node Bookkeeper Cluster using the [BookKeeper Operator](https://
spec:
replicas: 1
storage:
ledgerVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
journalVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
indexVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
ledgerVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
journalVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
indexVolumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "standard"
resources:
requests:
storage: 10Gi
```

### Pravega
Expand All @@ -76,7 +76,7 @@ spec:
segmentStoreReplicas: 1
options:
bookkeeper.bkAckQuorumSize: "1"
bookkeeper.bkWriteQuorumSize: "1"
bookkeeper.bkEnsembleSize: "1"
bookkeeper.ack.quorum.size: "1"
bookkeeper.write.quorum.size: "1"
bookkeeper.ensemble.size: "1"
```
6 changes: 3 additions & 3 deletions doc/pravega-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ All values must be expressed as Strings.
spec:
pravega:
options:
metrics.enableStatistics: "true"
metrics.statsdHost: "telegraph.default"
metrics.statsdPort: "8125"
metrics.statistics.enable: "true"
metrics.statsD.connect.host: "telegraph.default"
metrics.statsD.connect.port: "8125"
...
```
### Pravega JVM Options
Expand Down
12 changes: 6 additions & 6 deletions doc/tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ spec:
...
pravega:
options:
controller.auth.tlsEnabled: "true"
controller.auth.tlsCertFile: "/etc/secret-volume/controller01.pem"
controller.auth.tlsKeyFile: "/etc/secret-volume/controller01.key.pem"
pravegaservice.enableTls: "true"
pravegaservice.certFile: "/etc/secret-volume/segmentStore01.pem"
pravegaservice.keyFile: "/etc/secret-volume/segmentStore01.key.pem"
controller.security.tls.enable: "true"
controller.security.tls.server.certificate.location: "/etc/secret-volume/controller01.pem"
controller.security.tls.server.privateKey.location: "/etc/secret-volume/controller01.key.pem"
pravegaservice.security.tls.enable: "true"
pravegaservice.security.tls.server.certificate.location: "/etc/secret-volume/segmentStore01.pem"
pravegaservice.security.tls.server.privateKey.location: "/etc/secret-volume/segmentStore01.key.pem"
...
```

Expand Down
4 changes: 2 additions & 2 deletions doc/upgrade-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ segmentStoreJVMOptions: ["-Xmx4g", "-XX:MaxDirectMemorySize=12g"]
3. The cache should be configured at least 1 or 2 GB below the Direct Memory value provided since the Direct Memory is used by other components as well (like Netty). This value is configured in the pravega options part of the manifest file
```
options:
pravegaservice.cacheMaxSize: "11811160064"
pravegaservice.cache.size.max: "11811160064"
```

To summarize the way in which the segmentstore pod memory is distributed:

```
POD_MEM_LIMIT = JVM Heap + Direct Memory
Direct Memory = pravegaservice.cacheMaxSize + 1GB/2GB (other uses)
Direct Memory = pravegaservice.cache.size.max + 1GB/2GB (other uses)
```

## Upgrade process
Expand Down
47 changes: 27 additions & 20 deletions example/cr-detailed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,33 @@ spec:
# See https://github.com/pravega/pravega/blob/3f5b65084ae17e74c8ef8e6a40e78e61fa98737b/config/config.properties
# for available configuration properties
options:
pravegaservice.containerCount: "4"
pravegaservice.cacheMaxSize: "1073741824"
pravegaservice.zkSessionTimeoutMs: "10000"
attributeIndex.readBlockSize: "1048576"
readIndex.storageReadAlignment: "1048576"
durableLog.checkpointMinCommitCount: "300"
bookkeeper.bkAckQuorumSize: "3"
metrics.dynamicCacheSize: "100000"
metrics.enableStatistics: "true"
metrics.statsdHost: "telegraph.default"
metrics.statsdPort: "8125"
# The mount dir for secrets is /etc/secret-volume
controller.auth.tlsEnabled: "true"
controller.auth.tlsCertFile: "/etc/secret-volume/controller01.pem"
controller.auth.tlsKeyFile: "/etc/secret-volume/controller01.key.pem"
controller.rest.tlsKeyStoreFile: "/etc/secret-volume/controller01.jks"
controller.rest.tlsKeyStorePasswordFile: "/etc/secret-volume/password"
pravegaservice.enableTls: "true"
pravegaservice.certFile: "/etc/secret-volume/segmentStore01.pem"
pravegaservice.keyFile: "/etc/secret-volume/segmentStore01.key.pem"
pravegaservice.container.count: "4"
pravegaservice.cache.size.max: "1073741824"
pravegaservice.zk.connect.sessionTimeout.milliseconds: "10000"
readindex.storageRead.alignment: "1048576"
durablelog.checkpoint.commit.count.min: "300"
bookkeeper.ack.quorum.size: "3"
metrics.dynamicCache.size: "100000"
metrics.statistics.enable: "true"
metrics.statsD.connect.host: "telegraph.default"
metrics.statsD.connect.port: "8125"
# The mount dir for tls secrets is /etc/secret-volume
controller.security.tls.enable: "true"
controller.security.tls.server.certificate.location: "/etc/secret-volume/controller01.pem"
controller.security.tls.server.privateKey.location: "/etc/secret-volume/controller01.key.pem"
controller.security.tls.server.keyStore.location: "/etc/secret-volume/controller01.jks"
controller.security.tls.server.keyStore.pwd.location: "/etc/secret-volume/password"
pravegaservice.security.tls.enable: "true"
pravegaservice.security.tls.server.certificate.location: "/etc/secret-volume/segmentStore01.pem"
pravegaservice.security.tls.server.privateKey.location: "/etc/secret-volume/segmentStore01.key.pem"
# The mount dir for auth secrets is /etc/auth-passwd-volume
controller.security.auth.enable: "true"
controller.security.pwdAuthHandler.accountsDb.location: "/etc/auth-passwd-volume/userdata.txt"
controller.security.auth.delegationToken.signingKey.basis: "secret"
autoScale.controller.connect.security.auth.enable: "true"
autoScale.security.auth.token.signingKey.basis: "secret"
pravega.client.auth.token: "YWRtaW46MTExMV9hYWFh"
pravega.client.auth.method: "Basic"

# Pass the JVM options to controller and segmentstore
segmentStoreJVMOptions: ["-Xmx2g", "-XX:MaxDirectMemorySize=2g"]
Expand Down

0 comments on commit 28b2c5a

Please sign in to comment.