Skip to content

[ISSUE-6131]: Ensure JVM memory and GC options are set for bookie#6201

Merged
sijie merged 3 commits intoapache:masterfrom
roman-popenov:pulsar-issue-6131
Feb 8, 2020
Merged

[ISSUE-6131]: Ensure JVM memory and GC options are set for bookie#6201
sijie merged 3 commits intoapache:masterfrom
roman-popenov:pulsar-issue-6131

Conversation

@roman-popenov
Copy link
Copy Markdown
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 force-pushed the pulsar-issue-6131 branch from f5bf463 to 7d01209 Compare February 4, 2020 07:32
@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