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-6131]: Ensure JVM memory and GC options are set for bookie #6201

Merged
merged 3 commits into from
Feb 8, 2020

Conversation

roman-popenov
Copy link
Contributor

Motivation

Fixes #6131 (caused by #5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables BOOKIE_MEM and BOOKIE_FC defined in conf/bkenv.sh has no effect, and it is always using the defaults values.

Proposed solution:

Set BOOKIE_MEM and BOOKIE_GC in the helm deployments charts and default to PULSAR_MEM if the BOOKIE settings are not set and then use the default settings if none of those environment variables are set.

Changes made

Helm chart deployment values.yaml and values-mini.yaml along with the bkenv.sh configuration script.

Documentation

Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.

@sijie sijie merged commit 28875d5 into apache:master Feb 8, 2020
tuteng pushed a commit to AmateurEvents/pulsar that referenced this pull request Feb 23, 2020
…ache#6201)

### Motivation
Fixes apache#6131 (caused by apache#5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables `BOOKIE_MEM` and `BOOKIE_FC` defined in conf/bkenv.sh has no effect, and it is always using the defaults values. 

#### Proposed solution:
Set `BOOKIE_MEM` and `BOOKIE_GC` in the helm deployments charts and default to `PULSAR_MEM` if the `BOOKIE` settings are not set and then use the default settings if none of those environment variables are set.

#### Changes made
Helm chart deployment `values.yaml` and `values-mini.yaml` along with the `bkenv.sh` configuration script.

### Documentation
Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.
tuteng pushed a commit to AmateurEvents/pulsar that referenced this pull request Mar 21, 2020
…ache#6201)

### Motivation
Fixes apache#6131 (caused by apache#5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables `BOOKIE_MEM` and `BOOKIE_FC` defined in conf/bkenv.sh has no effect, and it is always using the defaults values. 

#### Proposed solution:
Set `BOOKIE_MEM` and `BOOKIE_GC` in the helm deployments charts and default to `PULSAR_MEM` if the `BOOKIE` settings are not set and then use the default settings if none of those environment variables are set.

#### Changes made
Helm chart deployment `values.yaml` and `values-mini.yaml` along with the `bkenv.sh` configuration script.

### Documentation
Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.

(cherry picked from commit 28875d5)
tuteng pushed a commit that referenced this pull request Apr 13, 2020
)

### Motivation
Fixes #6131 (caused by #5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables `BOOKIE_MEM` and `BOOKIE_FC` defined in conf/bkenv.sh has no effect, and it is always using the defaults values. 

#### Proposed solution:
Set `BOOKIE_MEM` and `BOOKIE_GC` in the helm deployments charts and default to `PULSAR_MEM` if the `BOOKIE` settings are not set and then use the default settings if none of those environment variables are set.

#### Changes made
Helm chart deployment `values.yaml` and `values-mini.yaml` along with the `bkenv.sh` configuration script.

### Documentation
Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.

(cherry picked from commit 28875d5)
jiazhai pushed a commit to jiazhai/pulsar that referenced this pull request May 18, 2020
…ache#6201)

### Motivation
Fixes apache#6131 (caused by apache#5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables `BOOKIE_MEM` and `BOOKIE_FC` defined in conf/bkenv.sh has no effect, and it is always using the defaults values.

#### Proposed solution:
Set `BOOKIE_MEM` and `BOOKIE_GC` in the helm deployments charts and default to `PULSAR_MEM` if the `BOOKIE` settings are not set and then use the default settings if none of those environment variables are set.

#### Changes made
Helm chart deployment `values.yaml` and `values-mini.yaml` along with the `bkenv.sh` configuration script.

### Documentation
Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.
(cherry picked from commit 28875d5)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…ache#6201)

### Motivation
Fixes apache#6131 (caused by apache#5675):

When upgrading an existing 2.4.1 bookie cluster to 2.5.0 on kubernetes, the bookie fails to start with the following exception during initialization: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 2147483648, max: 2147483648). This is caused by the fact that the bookie environment variables `BOOKIE_MEM` and `BOOKIE_FC` defined in conf/bkenv.sh has no effect, and it is always using the defaults values. 

#### Proposed solution:
Set `BOOKIE_MEM` and `BOOKIE_GC` in the helm deployments charts and default to `PULSAR_MEM` if the `BOOKIE` settings are not set and then use the default settings if none of those environment variables are set.

#### Changes made
Helm chart deployment `values.yaml` and `values-mini.yaml` along with the `bkenv.sh` configuration script.

### Documentation
Currently, the documentation explaining the deployment process and how to change settings is lacking and need to be updated.
lhotari added a commit to lhotari/pulsar that referenced this pull request Feb 19, 2021
- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (apache#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
lhotari added a commit to lhotari/pulsar that referenced this pull request Feb 19, 2021
- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (apache#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
merlimat pushed a commit that referenced this pull request Feb 19, 2021
- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
eolivelli pushed a commit that referenced this pull request Apr 27, 2021
- Currently Bookies fallback to PULSAR_MEM if BOOKIE_MEM isn't set (#6201).
  For consistency, it's useful to fallback to PULSAR_GC if BOOKIE_GC
  isn't set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to upgrade bookie to 2.5.0
3 participants