Skip to content

Instantly share code, notes, and snippets.

@arcolife
Last active May 29, 2017 09:56
Show Gist options
  • Select an option

  • Save arcolife/9ed80d4b84cf2250e2fdaced4cc38f01 to your computer and use it in GitHub Desktop.

Select an option

Save arcolife/9ed80d4b84cf2250e2fdaced4cc38f01 to your computer and use it in GitHub Desktop.
puma <-> worker mapping
root@CF vmdb]# rails evm:status
Checking EVM status...
 Zone | Server | Status  | ID |   PID |  SPID | URL                     | Started On           | Last Heartbeat       | Master? | Active Roles
------+--------+---------+----+-------+-------+-------------------------+----------------------+----------------------+---------+---------------------------------------------------------------------------------------------------------------------------------------
 Test | EVM    | started |  6 | 35999 | 39034 | druby://127.0.0.1:34301 | 2017-05-24T16:58:42Z | 2017-05-29T09:44:39Z | false   | automate:database_operations:ems_metrics_processor:ems_operations:git_owner:reporting:scheduler:user_interface:web_services:websocket

 Worker Type                  | Status  |  ID |   PID | SPID  | Server id | Queue Name / URL      | Started On           | Last Heartbeat
------------------------------+---------+-----+-------+-------+-----------+-----------------------+----------------------+----------------------
 MiqEmsMetricsProcessorWorker | started | 145 | 61090 | 64797 |         6 | ems_metrics_processor | 2017-05-25T08:20:13Z | 2017-05-29T09:44:55Z
 MiqEmsMetricsProcessorWorker | started | 144 | 61082 | 64796 |         6 | ems_metrics_processor | 2017-05-25T08:20:13Z | 2017-05-29T09:44:55Z
 MiqGenericWorker             | started |  79 | 36229 | 39069 |         6 | generic               | 2017-05-24T16:58:43Z | 2017-05-29T09:44:53Z
 MiqGenericWorker             | started |  78 | 36221 | 39068 |         6 | generic               | 2017-05-24T16:58:43Z | 2017-05-29T09:44:52Z
 MiqPriorityWorker            | started |  81 | 36245 | 39071 |         6 | generic               | 2017-05-24T16:58:43Z | 2017-05-29T09:44:54Z
 MiqPriorityWorker            | started |  80 | 36237 | 39070 |         6 | generic               | 2017-05-24T16:58:43Z | 2017-05-29T09:44:54Z
 MiqReportingWorker           | started | 104 | 36351 | 39138 |         6 | reporting             | 2017-05-24T16:59:09Z | 2017-05-29T09:44:54Z
 MiqReportingWorker           | started | 103 | 36343 | 39137 |         6 | reporting             | 2017-05-24T16:59:09Z | 2017-05-29T09:44:54Z
 MiqScheduleWorker            | started |  82 | 36253 | 39072 |         6 |                       | 2017-05-24T16:58:44Z | 2017-05-29T09:44:43Z

This part from output of # rails evm:status:

MiqUiWorker                  | started | 106 | 36371 |       |         6 | http://127.0.0.1:3000 | 2017-05-24T16:59:10Z | 2017-05-29T09:44:51Z
MiqWebServiceWorker          | started | 108 | 36379 |       |         6 | http://127.0.0.1:4000 | 2017-05-24T16:59:10Z | 2017-05-29T09:44:45Z
MiqWebsocketWorker           | started | 105 | 36359 |       |         6 | http://127.0.0.1:5000 | 2017-05-24T16:59:10Z | 2017-05-29T09:44:49Z

===

[root@CF vmdb]# ps afx | grep MIQ
43870 pts/0    S+     0:00          \_ grep --color=auto MIQ
35999 ?        Sl   303:23 MIQ Server
36221 ?        SNl    7:10  \_ MIQ: MiqGenericWorker id: 78, queue: generic
36229 ?        SNl    7:24  \_ MIQ: MiqGenericWorker id: 79, queue: generic
36237 ?        SNl   10:49  \_ MIQ: MiqPriorityWorker id: 80, queue: generic
36245 ?        SNl   10:50  \_ MIQ: MiqPriorityWorker id: 81, queue: generic
36253 ?        SNl   16:56  \_ MIQ: MiqScheduleWorker id: 82
36343 ?        SNl    4:13  \_ MIQ: MiqReportingWorker id: 103, queue: reporting
36351 ?        SNl    4:12  \_ MIQ: MiqReportingWorker id: 104, queue: reporting

corresponds w/ this part from output of # ps afx

36359 ?        SNl    5:06  \_ puma 3.3.0 (tcp://127.0.0.1:5000) [MIQ: Web Server Worker]
36371 ?        SNl    8:14  \_ puma 3.3.0 (tcp://127.0.0.1:3000) [MIQ: Web Server Worker]
36379 ?        SNl    3:35  \_ puma 3.3.0 (tcp://127.0.0.1:4000) [MIQ: Web Server Worker]
61082 ?        SNl  149:14  \_ MIQ: MiqEmsMetricsProcessorWorker id: 144, queue: ems_metrics_processor
61090 ?        SNl  148:29  \_ MIQ: MiqEmsMetricsProcessorWorker id: 145, queue: ems_metrics_processor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment