You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/11 23:17:00 UTC
[jira] [Closed] (HBASE-2058) Coprocessors: CPU and memory limit policy enforcment via runtime weaving
[ https://issues.apache.org/jira/browse/HBASE-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell closed HBASE-2058.
--------------------------------------
> Coprocessors: CPU and memory limit policy enforcment via runtime weaving
> ------------------------------------------------------------------------
>
> Key: HBASE-2058
> URL: https://issues.apache.org/jira/browse/HBASE-2058
> Project: HBase
> Issue Type: Improvement
> Components: Coprocessors
> Reporter: Andrew Kyle Purtell
> Priority: Major
>
> Use the ASM bytecode analysis and rewriting engine to impose some constraints on CPU and memory use. This is middle ground between arbitrary function and a locked down language.
> We will be given arbitrary bytecode input. It is acceptable to reject a class and abort coprocessor loading if it defies analysis at load time such that we have insufficient confidence about the result.
> Wrap allocations to simply disallow large allocations. Hook or add finalizers to keep a running tally of aggregate heap charge. Disallow allocation beyond policy limit.
> Weave CPU usage tracking into loop headers. Throw an uncatchable exception if time limits prescribed by policy are exceeded.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)