How to deploy noisy-neighbor-nozzle step-by-step
search cancel

How to deploy noisy-neighbor-nozzle step-by-step

book

Article ID: 297969

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

This article describes how to deploy the noisy-neighbor-nozzle, step-by-step, in order to identify the top log producers.

Environment

Product Version: 2.5

Resolution

1. Create a client to be used for the noisy-neighbor-nozzle:
jump-user@linux-jump-box-1804:~$ uaac target uaa.your_TAS_system_domain --skip-ssl-validation
Unknown key: Max-Age = 86400
 
Target: https://uaa.your_TAS_system_domain
 
jump-user@linux-jump-box-1804:~$ uaac token client get admin -s your_admin_client_secret
Unknown key: Max-Age = 86400
 
Successfully fetched token via client credentials grant.
Target: https://uaa.your_TAS_system_domain
Context: admin, from client admin
jump-user@linux-jump-box-1804:~$ uaac client add my-firehose-nozzle     --access_token_validity 1209600     --authorized_grant_types client_credentials,refresh_token     -s my-secret     --scope openid,oauth.approvals,doppler.firehose     --authorities oauth.login,doppler.firehose,uaa.resource
  scope: openid oauth.approvals doppler.firehose
  client_id: my-firehose-nozzle
  resource_ids: none
  authorized_grant_types: refresh_token client_credentials
  autoapprove:
  access_token_validity: 1209600
  authorities: oauth.login doppler.firehose
  name: my-firehose-nozzle
  required_user_groups:
  lastmodified: 1620983749000
  id: my-firehose-nozzle

2. Install theĀ noisy-neighbor-nozzle app:
jump-user@linux-jump-box-1804:~$ wget https://github.com/cloudfoundry/noisy-neighbor-nozzle/releases/download/v1.5.1/noisy-neighbor.tgz
.
.
jump-user@linux-jump-box-1804:~$ 
jump-user@linux-jump-box-1804:~$ 
jump-user@linux-jump-box-1804:~$ tar -xzvf noisy-neighbor.tgz
noisy-neighbor/
noisy-neighbor/datadog-reporter
noisy-neighbor/accumulator
.
.
jump-user@linux-jump-box-1804:~$  cd noisy-neighbor/
.
.
jump-user@linux-jump-box-1804:~/noisy-neighbor$ ./deployer-linux --interactive
? What is your system domain? your_TAS_system_domain
? What is your app domain? your_TAS_app_domain
? UAA Address? https://uaa.your_TAS_system_domain
? Loggregator Address? wss://doppler.your_TAS_system_domain:443
? How many nozzle instances? 4
? Client ID? my-firehose-nozzle
? Client Secret? [? for help] *********
? Skip certificate verification? Yes
Pushing from manifest to org system / space system as admin...
Using manifest file /tmp/manifest-554306779
.
.

3. Install the noisy-neighbor-nozzle plugin:
jump-user@linux-jump-box-1804:~/noisy-neighbor$  wget https://github.com/cloudfoundry/noisy-neighbor-nozzle/releases/download/v1.5.1/noisy-neighbor-cli-plugin-linux
.
.
jump-user@linux-jump-box-1804:~/noisy-neighbor$ cf install-plugin noisy-neighbor-cli-plugin-linux
Attention: Plugins are binaries written by potentially untrusted authors.
Install and use plugins at your own risk.
Do you want to install the plugin noisy-neighbor-cli-plugin-linux? [yN]: y
Installing plugin log-noise...
OK
 
Plugin log-noise 1.5.1 successfully installed.

4. Run:
jump-user@linux-jump-box-1804:~/noisy-neighbor$ cf log-noise
Volume Last Minute  App Instance
7                   system.system.app-usage-worker/0
6                   system.system.app-usage-server/0
6                   system.system.app-usage-server/1
2                   lab-admin.production.labs-api/0
1                   system.system.app-usage-scheduler/0