Skip to content

Conversation

@zhuoliu
Copy link

@zhuoliu zhuoliu commented Jul 29, 2015

The log writer process that writes out stderr and stdout should have a config that controls it's memory usage and it should default to a very small value, probably 50MB in most cases.

To address above issue, one new parameter is defined for logwriter's jvmopts: "topology.worker.lw.childopts".
The default heap size of logwriter is set as 64M, or user can override it through "-c topology.worker.lw.childopts='xxxx " when submitting a topology.

@knusbaum
Copy link
Contributor

Would it be possible to expand 'lw' to 'logwriter'?
I know it's longer, but it's much clearer what the config is for.

@zhuoliu
Copy link
Author

zhuoliu commented Jul 29, 2015

Good suggestion! Updated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use storm-conf but not conf here?
topo-worker-logwriter-childopts (storm-conf TOPOLOGY-WORKER-LOGWRITER-CHILDOPTS)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Since user may have configuration for this in topology's stormconf.ser. Updated.

@revans2
Copy link
Contributor

revans2 commented Aug 5, 2015

The change looks good to me +1, but I want to give @knusbaum some time to follow up on his review too.

@knusbaum
Copy link
Contributor

+1

@asfgit asfgit merged commit eb6d738 into apache:master Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants