The following commands should be run from the Ops Manager VM.
Installing the plugin is simple.
1. Log on to the CF CLI with your admin credentials:
cf api <your_cf_api_url> cf login
cf add-plugin-repo CF-Community http://plugins.cloudfoundry.org/
cf install-plugin "Firehose Plugin" -r CF-Community
apt-get install pv
cf nozzle
` and pipe to `pv
` to calculate throughput. Please note the `egrep
` statement is removing erroneous new line character from the `cf nozzle
` command. In this example Loggregator is processing 460.4 messages a second. The output will refresh every 10 seconds.
cf nozzle -n | egrep -v "^$" | pv -l -i10 -r >/dev/null
[460.4 /s]
Refer to Loggregator Operators Guide for Scaling of Traffic Controllers, Dopplers, and Nozzles.
On additional consideration is that Each Doppler can handle about 16k / envelopes per second max, so you should avoid exceeding 8-10k message per second from Metron. Metron is a process that forwards events, metrics, and logs to Dopplers and it exists on all PAS deployed instances.
For example a Diego Cell emits app logs to Metron which in turn sends the to Doppler. You can measure the amount of envelopes emitted by a metron instance monitoring the metric "metron.egress
". The Loggregator Operator's Guide provides more details about this metric.
Refer to this Ops Guide for more Details on how these scaling decisions were made and what VM Types were used in testing.