Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Fix RAM config in example code (#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwangtw authored and Neng Lu committed Aug 23, 2018
1 parent 5a11b3e commit 7fb0df3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public final class ExampleResources {

static final long COMPONENT_RAM_MB = 512;
static final long COMPONENT_RAM_MB = 1024;

static ByteAmount getComponentRam() {
return ByteAmount.fromMegabytes(COMPONENT_RAM_MB);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ public static void main(String[] args) throws AlreadyAliveException, InvalidTopo

// configure component resources
conf.setComponentRam("word",
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB * 2));
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB));
conf.setComponentRam("consumer",
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB * 2));
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB));

// configure container resources
conf.setContainerDiskRequested(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ public static void main(String[] args) throws AlreadyAliveException, InvalidTopo

// configure component resources
conf.setComponentRam("word",
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB * 2));
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB));
conf.setComponentRam("consumer",
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB * 2));
ByteAmount.fromMegabytes(ExampleResources.COMPONENT_RAM_MB));

// configure container resources
conf.setContainerDiskRequested(
Expand Down

0 comments on commit 7fb0df3

Please sign in to comment.