ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <>
Subject [jira] [Commented] (AMBARI-20345) Alert Event Publisher Executor Doesn't Scale Threads
Date Tue, 07 Mar 2017 20:50:38 GMT


Hudson commented on AMBARI-20345:

FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1203 (See [])
AMBARI-20345 - Alert Event Publisher Executor Doesn't Scale Threads (jhurley: [])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/events/publishers/
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/
* (edit) ambari-server/src/test/java/org/apache/ambari/server/state/services/
* (edit) ambari-server/src/main/java/org/apache/ambari/server/configuration/
* (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/
* (edit) ambari-server/docs/configuration/

> Alert Event Publisher Executor Doesn't Scale Threads
> ----------------------------------------------------
>                 Key: AMBARI-20345
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>             Fix For: 2.5.0
>         Attachments: AMBARI-20345.patch
> The event bus which is used to handling incoming {{AlertEvent}} events is incorrectly
initialized and can never scale from the core number of threads. This is because it uses an
unbounded queued. From the [ThreadPoolExecutor|]
> {quote}
> A ThreadPoolExecutor will automatically adjust the pool size (see getPoolSize()) according
to the bounds set by corePoolSize (see getCorePoolSize()) and maximumPoolSize (see getMaximumPoolSize()).
When a new task is submitted in method execute(java.lang.Runnable), and fewer than corePoolSize
threads are running, a new thread is created to handle the request, even if other worker threads
are idle. If there are more than corePoolSize but less than maximumPoolSize threads running,
*a new thread will be created only if the queue is full.*
> {quote}
> We should switch to a configurable, bounded queue so that this property can be utilized
in large clusters where more than the default of 2 core threads is needed.

This message was sent by Atlassian JIRA

View raw message