[
https://issues.apache.org/jira/browse/AMBARI-1844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13626549#comment-13626549
]
Tom Beerbower commented on AMBARI-1844:
---------------------------------------
Specify a set of RequestInfo/Body pairs in a single request body for a PUT as
follows ... Note that each RequestInfo contains a query string so you can
attach each Body to a different host as shown.
{code}
[
{
"RequestInfo":{
"query":"Hosts/host_name=host1"
},
"Body":
{
"Hosts": {
"desired_config": {
"type": "global",
"tag": "version50",
"properties": { "a": "b", "x": "y" }
}
}
}
},
{
"RequestInfo":{
"query":"Hosts/host_name=host2"
},
"Body":
{
"Hosts": {
"desired_config": {
"type": "global",
"tag": "version51",
"properties": { "a": "c", "x": "z" }
}
}
}
}
]
{code}
> Need ability to update multiple hosts in 1 PUT call
> ---------------------------------------------------
>
> Key: AMBARI-1844
> URL: https://issues.apache.org/jira/browse/AMBARI-1844
> Project: Ambari
> Issue Type: Bug
> Reporter: Tom Beerbower
> Assignee: Tom Beerbower
> Attachments: AMBARI-1844.patch
>
>
> Currently when we save host-overrides configuration, we have to do PUT of the
> delta on each host (documented in BUG-3775).
> This is problematic if admin provides an exception to 100 hosts. This will
> require 100 PUT calls which is expensive. There is a bulk update mechanism,
> but that requires the same content for all 100 hosts. This will not be the
> case if any hosts have other properties that are overridden.
> To save on network calls, we would like to request a bulk update mechanism.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira