ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14690) Configurable system resource values for ambari-agent
Date Thu, 03 Mar 2016 18:33:18 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15178328#comment-15178328
] 

Hudson commented on AMBARI-14690:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #4436 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4436/])
Reverted. "AMBARI-14690. Configurable system resources for ambari agents (stoader: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=3df1c5408e2e93336e6a755b13e62ec75c54a007])
* ambari-agent/conf/unix/ambari-agent.ini
* ambari-agent/conf/windows/ambari-agent.ini
* ambari-agent/src/test/python/ambari_agent/TestHardware.py
* ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* ambari-agent/src/main/python/ambari_agent/Facter.py
AMBARI-14690. Configurable system resource values for ambari-agent. (stoader: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=492a305409a26f687e55be7be624b9e95ce422d7])
* ambari-agent/src/test/python/ambari_agent/TestHardware.py
* ambari-agent/src/main/python/ambari_agent/Facter.py
* ambari-agent/conf/unix/ambari-agent.ini
* ambari-agent/src/main/python/ambari_agent/AmbariConfig.py
* ambari-agent/conf/windows/ambari-agent.ini


> Configurable system resource values for ambari-agent
> ----------------------------------------------------
>
>                 Key: AMBARI-14690
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14690
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-agent
>    Affects Versions: 2.2.0
>            Reporter: Olivér Szabó
>            Assignee: Olivér Szabó
>             Fix For: 2.2.2
>
>         Attachments: AMBARI-14690_v8.patch
>
>
> When an ambari agent starts, host system details are registered into ambari server database.
These values are calculated by ambari-agents based on different files on the hosts (e.g :
/proc/meminfo). 
> In some cases it isn't a correct behavior: If ambari-agent is in a docker-container,
it will see the same memory/cpu details. (stack advisor also uses these values, its possible
stack advisor can recommend a too high memory value for some services)
> Solution: Configurable system resources for hosts (ambari-agent).
> Added new option to 'agent' section in ambari-agent.ini: system_resource_overrides. It
points to a directory, if the value/directory does not exist or empty, it will use the default
behavior
> {code:java}
> [agent]
> ...
> system_resource_overrides=/etc/resource_overrides
> ...
> {code}
> It reads all json files from that directory. JSON structure looks like this:
> {code:java}
> {
> "memoryfree" :  "15600",
> "memorytotal" : ....
> }
> {code}
> In ambari-agent Facter.py set these values, all of the factor info values can be redefined
in one or multiple JSON files.
> That means ambari is not responsible to gather these values from the system.
> - use case: 
> During 'docker run' , before 'ambari-agent start', 'system_resource_overrides' value
can be overwritten, or the default ('/etc/resource_overrides') can be mount with '-v' flag
(docker run -v /my/path:/etc/resource_overrides).
> Facter.py is called during ambari-agent start, so if the values will be modified later,
ambari-agent needs to be restarted.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message