You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Otto Fowler (JIRA)" <ji...@apache.org> on 2017/06/02 17:44:04 UTC

[jira] [Updated] (METRON-981) Management UI allows you to activate parsers even if you don't have enough storm slots

     [ https://issues.apache.org/jira/browse/METRON-981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otto Fowler updated METRON-981:
-------------------------------
    Description: 
The Management UI should inform the user that there are no free slots in storm when trying to activate a parser, rather than let the parser fail silently and make the user go on a hunt for the reason it is failing.

To achieve this, the rest-api should provide methods to query the number of slots used and available in storm as well.

StormStatusServiceImpl already calls the storm ui rest endpoints and should be extended to call:

{code}
/api/v1/supervisor/summary (GET)
returns all supervisors summary

Response Fields:

Field	Value	Description
id	String	Supervisor's id
host	String	Supervisor's host name
uptime	String	Shows how long the supervisor is running
slotsTotal	Integer	Total number of available worker slots for this supervisor
slotsUsed	Integer	Number of worker slots used on this supervisor
Sample Response:
json { "supervisors": [ { "id": "0b879808-2a26-442b-8f7d-23101e0c3696", "host": "10.11.1.7", "uptime": "5m 58s", "slotsTotal": 4, "slotsUsed": 3 } ] }
{code}


  was:
The Management UI should inform the user that there are no free slots in storm when trying to activate a parser, rather than let the parser fail silently and make the user go on a hunt for the reason it is failing.

To achieve this, the rest-api should provide methods to query the number of slots used and available in storm as well.

StormStatusServiceImpl already calls the storm ui rest endpoints. 

{code}
/api/v1/supervisor/summary (GET)
returns all supervisors summary

Response Fields:

Field	Value	Description
id	String	Supervisor's id
host	String	Supervisor's host name
uptime	String	Shows how long the supervisor is running
slotsTotal	Integer	Total number of available worker slots for this supervisor
slotsUsed	Integer	Number of worker slots used on this supervisor
Sample Response:
json { "supervisors": [ { "id": "0b879808-2a26-442b-8f7d-23101e0c3696", "host": "10.11.1.7", "uptime": "5m 58s", "slotsTotal": 4, "slotsUsed": 3 } ] }
{code}



> Management UI allows you to activate parsers even if you don't have enough storm slots
> --------------------------------------------------------------------------------------
>
>                 Key: METRON-981
>                 URL: https://issues.apache.org/jira/browse/METRON-981
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Otto Fowler
>
> The Management UI should inform the user that there are no free slots in storm when trying to activate a parser, rather than let the parser fail silently and make the user go on a hunt for the reason it is failing.
> To achieve this, the rest-api should provide methods to query the number of slots used and available in storm as well.
> StormStatusServiceImpl already calls the storm ui rest endpoints and should be extended to call:
> {code}
> /api/v1/supervisor/summary (GET)
> returns all supervisors summary
> Response Fields:
> Field	Value	Description
> id	String	Supervisor's id
> host	String	Supervisor's host name
> uptime	String	Shows how long the supervisor is running
> slotsTotal	Integer	Total number of available worker slots for this supervisor
> slotsUsed	Integer	Number of worker slots used on this supervisor
> Sample Response:
> json { "supervisors": [ { "id": "0b879808-2a26-442b-8f7d-23101e0c3696", "host": "10.11.1.7", "uptime": "5m 58s", "slotsTotal": 4, "slotsUsed": 3 } ] }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)