Skip to content
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

Issue 411: Updating Pravega configuration key names #416

Merged
merged 3 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
ravisharda marked this conversation as resolved.
Show resolved Hide resolved
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:
ravisharda marked this conversation as resolved.
Show resolved Hide resolved
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"

ravisharda marked this conversation as resolved.
Show resolved Hide resolved
# Pass the JVM options to controller and segmentstore
segmentStoreJVMOptions: ["-Xmx2g", "-XX:MaxDirectMemorySize=2g"]
Expand Down