mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
This commit is contained in:
parent
c61c91afb2
commit
e8f5dfddea
3 changed files with 5 additions and 4 deletions
|
@ -26,7 +26,8 @@ export function systemRoutes(server, commonRouteConfig) {
|
|||
if (typeof resp.nodes === 'object') {
|
||||
Object.keys(resp.nodes).forEach((k) => {
|
||||
if (resp.nodes[k].attributes !== undefined) {
|
||||
if (resp.nodes[k].attributes['ml.enabled'] === 'true') {
|
||||
const maxOpenJobs = resp.nodes[k].attributes['ml.max_open_jobs'];
|
||||
if (maxOpenJobs !== null && maxOpenJobs > 0) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,8 +51,7 @@ describe('map nodes info', () => {
|
|||
transport_address: '127.0.0.1:9300',
|
||||
attributes: {
|
||||
'ml.machine_memory': '17179869184',
|
||||
'ml.max_open_jobs': '20',
|
||||
'ml.enabled': 'true'
|
||||
'ml.max_open_jobs': '20'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,8 @@ describe('get_pipeline', () => {
|
|||
ip: '127.0.0.1',
|
||||
name: 'B0buMd-',
|
||||
attributes: {
|
||||
'ml.enabled': 'true'
|
||||
'ml.machine_memory': '17179869184',
|
||||
'ml.max_open_jobs': '20'
|
||||
}
|
||||
},
|
||||
logstash_state: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue