## Nodefony® {{nodefony.version}}

### Microservices Production

    $ npm run prod
                                _                  _     _
     _ __    _ __    ___     __| |  _   _    ___  | |_  (_)   ___    _ __
    | '_ \  | '__|  / _ \   / _` | | | | |  / __| | __| | |  / _ \  | '_ \
    | |_) | | |    | (_) | | (_| | | |_| | | (__  | |_  | | | (_) | | | | |
    | .__/  |_|     \___/   \__,_|  \__,_|  \___|  \__| |_|  \___/  |_| |_|
    |_|

    Version : 1.0.0   Platform : darwin   Process : nodefony-service   Pid : 87126

    Sun Mar 08 2020 22:10:24 INFO COMMAND : production
    Sun Mar 08 2020 22:10:24 INFO nodefony-service : Command : npm run prod in cwd : /Users/christophecamensuli/repository/test/nodefony-service
    Sun Mar 08 2020 22:10:24 INFO nodefony-service : Spawn : npm run prod
    npm WARN lifecycle The node binary used for scripts is /var/folders/h_/6my946zd5bz1w8wtz8s69yxh0000gn/T/yarn--1583701819977-0.23551390273035233/node but npm is using /Users/christophecamensuli/.nvm/versions/node/v13.9.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

    > nodefony-service@1.0.0 prod /Users/christophecamensuli/repository/test/nodefony-service
    > env-cmd -e production pm2 start config/pm2.config.js --env production

    ┌─────┬─────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
    │ id  │ name                │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
    ├─────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
    │ 2   │ examples            │ default     │ 1.0.0   │ cluster │ 87135    │ 2s     │ 0    │ online    │ 0%       │ 57.4mb   │ chr… │ disabled │
    │ 4   │ examples            │ default     │ 1.0.0   │ cluster │ 87137    │ 2s     │ 0    │ online    │ 0%       │ 57.0mb   │ chr… │ disabled │
    │ 6   │ examples            │ default     │ 1.0.0   │ cluster │ 87139    │ 2s     │ 0    │ online    │ 0%       │ 53.0mb   │ chr… │ disabled │
    │ 8   │ examples            │ default     │ 1.0.0   │ cluster │ 87141    │ 1s     │ 0    │ online    │ 0%       │ 49.4mb   │ chr… │ disabled │
    │ 11  │ examples            │ default     │ 1.0.0   │ cluster │ 87168    │ 1s     │ 0    │ online    │ 0%       │ 49.3mb   │ chr… │ disabled │
    │ 13  │ examples            │ default     │ 1.0.0   │ cluster │ 87174    │ 1s     │ 0    │ online    │ 0%       │ 44.7mb   │ chr… │ disabled │
    │ 15  │ examples            │ default     │ 1.0.0   │ cluster │ 87180    │ 1s     │ 0    │ online    │ 0%       │ 45.8mb   │ chr… │ disabled │
    │ 17  │ examples            │ default     │ 1.0.0   │ cluster │ 87182    │ 1s     │ 0    │ online    │ 0%       │ 43.2mb   │ chr… │ disabled │
    │ 19  │ examples            │ default     │ 1.0.0   │ cluster │ 87188    │ 1s     │ 0    │ online    │ 0%       │ 42.2mb   │ chr… │ disabled │
    │ 21  │ examples            │ default     │ 1.0.0   │ cluster │ 87196    │ 1s     │ 0    │ online    │ 0%       │ 39.0mb   │ chr… │ disabled │
    │ 23  │ examples            │ default     │ 1.0.0   │ cluster │ 87200    │ 1s     │ 0    │ online    │ 0%       │ 37.8mb   │ chr… │ disabled │
    │ 24  │ examples            │ default     │ 1.0.0   │ cluster │ 87203    │ 1s     │ 0    │ online    │ 0%       │ 38.6mb   │ chr… │ disabled │
    │ 1   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87134    │ 2s     │ 0    │ online    │ 0%       │ 57.8mb   │ chr… │ disabled │
    │ 3   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87136    │ 2s     │ 0    │ online    │ 0%       │ 56.7mb   │ chr… │ disabled │
    │ 5   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87138    │ 2s     │ 0    │ online    │ 0%       │ 53.6mb   │ chr… │ disabled │
    │ 7   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87140    │ 1s     │ 0    │ online    │ 0%       │ 50.1mb   │ chr… │ disabled │
    │ 9   │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87153    │ 1s     │ 0    │ online    │ 0%       │ 48.6mb   │ chr… │ disabled │
    │ 10  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87167    │ 1s     │ 0    │ online    │ 0%       │ 50.1mb   │ chr… │ disabled │
    │ 12  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87173    │ 1s     │ 0    │ online    │ 0%       │ 47.3mb   │ chr… │ disabled │
    │ 14  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87175    │ 1s     │ 0    │ online    │ 0%       │ 47.7mb   │ chr… │ disabled │
    │ 16  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87181    │ 1s     │ 0    │ online    │ 0%       │ 44.2mb   │ chr… │ disabled │
    │ 18  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87187    │ 1s     │ 0    │ online    │ 0%       │ 42.0mb   │ chr… │ disabled │
    │ 20  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87195    │ 1s     │ 0    │ online    │ 0%       │ 40.9mb   │ chr… │ disabled │
    │ 22  │ nodefony-service    │ default     │ 1.0.0   │ cluster │ 87199    │ 1s     │ 0    │ online    │ 0%       │ 41.0mb   │ chr… │ disabled │
    └─────┴─────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
    Module
    ┌────┬───────────────────────────────────────┬────────────────────┬───────┬──────────┬──────┬──────────┬──────────┬──────────┐
    │ id │ module                                │ version            │ pid   │ status   │ ↺    │ cpu      │ mem      │ user     │
    ├────┼───────────────────────────────────────┼────────────────────┼───────┼──────────┼──────┼──────────┼──────────┼──────────┤
    │ 0  │ pm2-logrotate                         │ 2.7.0              │ 87131 │ online   │ 0    │ 0%       │ 47.1mb   │ chr… │
    └────┴───────────────────────────────────────┴────────────────────┴───────┴──────────┴──────┴──────────┴──────────┴──────────┘
    ✨  Done in 7.29s.

## Nodefony® {{nodefony.version}}

### Microservices log

    $ npm run log

    /Users/.pm2/logs/pm2-logrotate-error.log last 15 lines:
    /Users/.pm2/logs/pm2-logrotate-out.log last 15 lines:
    0|pm2-logr | "/Users/.pm2/logs/pm2-logrotate-out__2020-03-05_00-28-49.log" has been created
    0|pm2-logr | "/Users/repository/test/nodefony-service/tmp/nodefony-service__2020-03-05_00-28-49.log" has been created

    /Users/repository/test/nodefony-service/tmp/nodefony-service.log last 15 lines:
    1|nodefony | Sun Mar 08 2020 22:10:30 INFO SERVICE Markdown  : Running
    1|nodefony | Sun Mar 08 2020 22:10:30 INFO SERVICE HTTP Server  : Starting Server
    1|nodefony | Sun Mar 08 2020 22:10:30 INFO SERVICE Markdown  : Running
    1|nodefony | Sun Mar 08 2020 22:10:30 INFO SERVICE HTTP Server  : Starting Server
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTP Server  : Server running at http://127.0.0.1:3000/
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Starting Server HTTPS
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Server running at http://127.0.0.1:3443/
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTP Server  : Server running at http://127.0.0.1:3000/
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Starting Server HTTPS
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Server running at http://127.0.0.1:3443/
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE Markdown  : Running
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTP Server  : Starting Server
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTP Server  : Server running at http://127.0.0.1:3000/
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Starting Server HTTPS
    1|nodefony | Sun Mar 08 2020 22:10:31 INFO SERVICE HTTPS Server  : Server running at http://127.0.0.1:3443/

    /Users/repository/test/nodefony-service/tmp/examples.log last 15 lines:
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : world
    2|examples | Sun Mar 08 2020 22:10:31 DEBUG SERVICE syscall  : Child Process exited with code 0
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : Running
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : world
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : Running
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : world
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : Running
    2|examples | Sun Mar 08 2020 22:10:31 INFO SERVICE n-api  : world
    2|examples | Sun Mar 08 2020 22:10:32 INFO SERVICE socket-io  : connection : WtYW1dxYlLVTAZgiAAAA
    2|examples | Sun Mar 08 2020 22:10:35 INFO SERVICE socket-io  : connection : fPfmwvwT15VxmdtlAAAA
    2|examples | Sun Mar 08 2020 22:10:38 INFO SERVICE socket-io  : send after 5 s
    2|examples | Sun Mar 08 2020 22:10:41 INFO SERVICE socket-io  : send after 5 s
    2|examples | Sun Mar 08 2020 22:11:34 INFO SERVICE socket-io  : disconnect : WtYW1dxYlLVTAZgiAAAA
    2|examples | Sun Mar 08 2020 22:11:36 INFO SERVICE socket-io  : connection : YP-GTKP0mrC-UaqvAAAA
    2|examples | Sun Mar 08 2020 22:11:44 INFO SERVICE socket-io  : send after 5 s

## Nodefony® {{nodefony.version}}

### Microservices Production Monitoring

    ┌─ Process List ─────────────────────────────────────────────┐┌──  examples Logs  ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │[ 2] examples              Mem:  56 MB    CPU:  0 %  online ││ examples > Sun Mar 08 2020 22:17:28 INFO SERVICE socket-io  : disconnect : fPfmwvwT15VxmdtlAAAA                                               │
    │[ 4] examples              Mem:  59 MB    CPU:  0 %  online ││ examples > Sun Mar 08 2020 22:17:40 INFO SERVICE Microservice  :  200 url : http://127.0.0.1:3001/                                            │
    │[ 6] examples              Mem:  58 MB    CPU:  0 %  online ││ examples > Sun Mar 08 2020 22:17:41 INFO SERVICE Microservice  :  200 url : http://127.0.0.1:3001/                                            │
    │[ 8] examples              Mem:  59 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[11] examples              Mem:  54 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[13] examples              Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[15] examples              Mem:  56 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[17] examples              Mem:  55 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[19] examples              Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[21] examples              Mem:  54 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[23] examples              Mem:  57 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[24] examples              Mem:  59 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[ 1] nodefony-service      Mem:  60 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[ 3] nodefony-service      Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[ 5] nodefony-service      Mem:  57 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[ 7] nodefony-service      Mem:  59 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[ 9] nodefony-service      Mem:  59 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[10] nodefony-service      Mem:  59 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[12] nodefony-service      Mem:  57 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[14] nodefony-service      Mem:  59 MB    CPU:  1 %  online ││                                                                                                                                               │
    │[16] nodefony-service      Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[18] nodefony-service      Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[20] nodefony-service      Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[22] nodefony-service      Mem:  58 MB    CPU:  0 %  online ││                                                                                                                                               │
    │[ 0] pm2-logrotate         Mem:  49 MB    CPU:  1 %  online ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    │                                                            ││                                                                                                                                               │
    └────────────────────────────────────────────────────────────┘└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    ┌─ Custom Metrics ───────────────────────────────────────────┐┌─ Metadata ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
    │ Heap Size                                       29.54 MiB  ││ App Name              examples                                                                                                                │
    │ Heap Usage                                        91.78 %  ││ Namespace             default                                                                                                                 │
    │ Used Heap Size                                  27.11 MiB  ││ Version               1.0.0                                                                                                                   │
    │ Active requests                                         0  ││ Restarts              0                                                                                                                       │
    │ Active handles                                          1  ││ Uptime                9m                                                                                                                      │
    │ Event Loop Latency                                1.43 ms  ││ Script path           /Users/christophecamensuli/repository/test/nodefony-service/src/node/examples/index.js                                  │
    │ Event Loop Latency p95                            5.18 ms  ││ Script args           pm2                                                                                                                     │
    │ HTTP Mean Latency                                  1.5 ms  ││ Interpreter           node                                                                                                                    │
    │ HTTP P95 Latency                                     2 ms  ││ Interpreter args      N/A                                                                                                                     │
    │ HTTP                                         0.01 req/min  ││ Exec mode             cluster                                                                                                                 │
    │                                                            ││ Node.js version       13.9.0                                                                                                                  │
    │                                                            ││ watch & reload        ✘                                                                                                                       │
    │                                                            ││ Unstable restarts     0                                                                                                                       │
    └────────────────────────────────────────────────────────────┘└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

     left/right: switch boards | up/down/mouse: scroll | Ctrl-C: exit                                                                                                      To go further check out https://pm2.io/