TestEngineering/Services/TSVerifierSyncTestEnvironments: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 36: Line 36:
* URLs
* URLs
** TokenServer: https://token.stage.mozaws.net
** TokenServer: https://token.stage.mozaws.net
** Verifier: https://verifier.stage.mozaws.net
** IdP: https://mockmyid.s3-us-west-2.amazonaws.com/
** OLD IdP: https://mockmyid.com/


* Versions:
* Version:
  TokenServer:
  TokenServer:
  rpm -qa | grep token
  rpm -qa | grep token
  Example: tokenserver-svcops <latest version>
  Example: tokenserver-svcops <latest version>
Verifier:
rpm -qa | grep verifier
Example: fxa-browserid-verifier-svcops <latest version>


* AWS
* AWS
Line 59: Line 52:
*** shared-bastion
*** shared-bastion
*** shared-heka
*** shared-heka
** tokenserver app server          (2 m3.medium instances behind a CF stack and ELB)
** tokenserver app server          (2 m3.medium instances behind a CF stack and ELB)
** tokenserver db                  (1 large DB instance behind RDS)
** tokenserver db                  (1 large DB instance behind RDS)
** fxa-browserid-verifier          (2 c3.large instances behind a CF stack and ELB)
 
* Files
* Files
** /data/tokenserver/*
** /data/tokenserver/*
Line 67: Line 61:
** tokenserver app server:
** tokenserver app server:
*** Search for token, circus, nginx, gunicorn
*** Search for token, circus, nginx, gunicorn
* Logs
** /media/ephemeral0/logs/
** /media/ephemeral0/logs/nginx/access.log
** /media/ephemeral0/logs/nginx/error.log
** /media/ephemeral0/logs/tokenserver/token.error.log
** /media/ephemeral0/logs/tokenserver/token.log.*
** /media/ephemeral0/logs/tokenserver/process_account_deletions.error.log
** /media/ephemeral0/logs/tokenserver/process_account_deletions.log
** /media/ephemeral0/squid/access.log
** /var/log/hekad/tokenserver.stdout.log
** /var/log/hekad/tokenserver.stderr.log
* Hekad
** /etc/puppet/modules/hekad
* QA Access via a Bastion Host
** SSH with AWS keys to the Stage bastion host in US East 1. From there SSH directly into any instance.
* Monitoring
** Kibana
*** https://kibana.shared.us-east-1.stage.mozaws.net/
*** https://kibana.shared.us-east-1.stage.mozaws.net/#/dashboard/file/weblogs.json
*** https://kibana.shared.us-east-1.stage.mozaws.net/#/dashboard/elasticsearch
/APK%20Signer%20Log%20Search
*** https://kibana.shared.us-east-1.stage.mozaws.net/index.html#/dashboard/elasticsearch/Token%20App%20Logs%20POC
** Heka
*** https://heka.shared.us-east-1.stage.mozaws.net/
*** https://heka.shared.us-east-1.stage.mozaws.net/#health
*** https://heka.shared.us-east-1.stage.mozaws.net/#sandboxes
** Stackdriver:
*** Stage main: https://app.stackdriver.com
*** https://app.stackdriver.com/groups/4388/stage-services-tag-sync15
*** https://app.stackdriver.com/instances/<AWS instance>
* Firefox Configs
** services.sync.clusterURL should get automatically set by the TokenServer
** services.sync.tokenServerURI = https://token.stage.mozaws.net/1.0/sync/1.5
== Verifier Stage Environment ==
* URLs
** Verifier: https://verifier.stage.mozaws.net
** IdP: https://mockmyid.s3-us-west-2.amazonaws.com/
** OLD IdP: https://mockmyid.com/
* Version:
Verifier:
rpm -qa | grep verifier
Example: fxa-browserid-verifier-svcops <latest version>
* AWS
** Shared:
*** shared-elasticsearch
*** shared-elasticsearch
*** shared-elasticsearch
*** shared-elasticsearch
*** shared-rabbitmq
*** shared-rabbitmq 
*** shared-bastion
*** shared-heka
** fxa-browserid-verifier          (2 c3.large instances behind a CF stack and ELB)
* Files
** /data/fxa-browserid-verifier
** /data/hekad
** /etc/puppet
** /etc/heka.d
** /media/ephemeral0/*
* Processes
** fxa-browserid-verifer:
** fxa-browserid-verifer:
*** Search for node, heka, nginx, circus
*** Search for node, heka, nginx, circus
* Logs
* Logs
** Tokenserver
** /media/ephemeral0/fxa-browserid-verifier/verifier_err.log
*** /media/ephemeral0/logs/
** /media/ephemeral0/fxa-browserid-verifier/verifier_out.log
*** /media/ephemeral0/logs/nginx/access.log
** /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
*** /media/ephemeral0/logs/nginx/error.log
** /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
*** /media/ephemeral0/logs/tokenserver/token.error.log
** /media/ephemeral0/nginx/logs/squid/access.log
*** /media/ephemeral0/logs/tokenserver/token.log.*
** /var/log/circus.log
*** /media/ephemeral0/logs/tokenserver/process_account_deletions.error.log
** /var/log/hekad/fxa-browserid_verifier.stderr.log
*** /media/ephemeral0/logs/tokenserver/process_account_deletions.log
** /var/log/hekad/fxa-browserid_verifier.stdout.log
*** /media/ephemeral0/squid/access.log
** /var/log/nginx/access.log
*** /var/log/hekad/tokenserver.stdout.log
** /var/log/nginx/error.log
*** /var/log/hekad/tokenserver.stderr.log
 
** Verifier:
*** /media/ephemeral0/fxa-browserid-verifier/verifier_err.log
*** /media/ephemeral0/fxa-browserid-verifier/verifier_out.log
*** GONE: /media/ephemeral0/heka/hekad_err.log
*** GONE: /media/ephemeral0/heka/hekad_out.log
*** GONE: /media/ephemeral0/nginx/logs/access.log
*** GONE: /media/ephemeral0/nginx/logs/error.log
*** /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
*** /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
*** /media/ephemeral0/nginx/logs/squid/access.log
*** /var/log/hekad/fxa-browserid_verifier.stderr.log
*** /var/log/hekad/fxa-browserid_verifier.stdout.log
* Hekad
* Hekad
** /etc/puppet/modules/hekad
** /etc/puppet/modules/hekad
* QA Access via a Bastion Host
* QA Access via a Bastion Host
** SSH with AWS keys to the Stage bastion host in US East 1. From there SSH directly into any instance.
** SSH with AWS keys to the Stage bastion host in US East 1. From there SSH directly into any instance.
* Monitoring
* Monitoring
** Kibana
** Kibana
Line 103: Line 159:
*** https://kibana.shared.us-east-1.stage.mozaws.net/#/dashboard/elasticsearch
*** https://kibana.shared.us-east-1.stage.mozaws.net/#/dashboard/elasticsearch
/APK%20Signer%20Log%20Search
/APK%20Signer%20Log%20Search
*** https://kibana.shared.us-east-1.stage.mozaws.net/index.html#/dashboard/elasticsearch/Token%20App%20Logs%20POC
 
*** https://kibana.shared.us-east-1.stage.mozaws.net/index.html#/dashboard/elasticsearch/Sync-Stage-Dash
** Heka
** Heka
*** https://heka.shared.us-east-1.stage.mozaws.net/
*** https://heka.shared.us-east-1.stage.mozaws.net/
Line 113: Line 168:
*** https://app.stackdriver.com/groups/4388/stage-services-tag-sync15
*** https://app.stackdriver.com/groups/4388/stage-services-tag-sync15
*** https://app.stackdriver.com/instances/<AWS instance>
*** https://app.stackdriver.com/instances/<AWS instance>
* Firefox Configs
* Firefox Configs
** services.sync.clusterURL should get automatically set by the TokenServer
** services.sync.clusterURL should get automatically set by the TokenServer

Revision as of 21:01, 18 June 2014

Tokenserver, Verifier, and Sync Production Environments

  • TokenServer: https://token.services.mozilla.com
  • Sync 1.5 Nodes (for now in AWS):
    • sync-1-us-east-2.sync.services.mozilla.com
    • sync-2-us-east-2.sync.services.mozilla.com
      • There are many more than this now...
  • QA Access: not allowed

TokenServer Stage Environment

  • Version:
TokenServer:
rpm -qa | grep token
Example: tokenserver-svcops <latest version>
  • AWS
    • Shared:
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-rabbitmq
      • shared-rabbitmq
      • shared-bastion
      • shared-heka
    • tokenserver app server (2 m3.medium instances behind a CF stack and ELB)
    • tokenserver db (1 large DB instance behind RDS)
  • Files
    • /data/tokenserver/*
  • Processes
    • tokenserver app server:
      • Search for token, circus, nginx, gunicorn
  • Logs
    • /media/ephemeral0/logs/
    • /media/ephemeral0/logs/nginx/access.log
    • /media/ephemeral0/logs/nginx/error.log
    • /media/ephemeral0/logs/tokenserver/token.error.log
    • /media/ephemeral0/logs/tokenserver/token.log.*
    • /media/ephemeral0/logs/tokenserver/process_account_deletions.error.log
    • /media/ephemeral0/logs/tokenserver/process_account_deletions.log
    • /media/ephemeral0/squid/access.log
    • /var/log/hekad/tokenserver.stdout.log
    • /var/log/hekad/tokenserver.stderr.log
  • Hekad
    • /etc/puppet/modules/hekad
  • QA Access via a Bastion Host
    • SSH with AWS keys to the Stage bastion host in US East 1. From there SSH directly into any instance.

/APK%20Signer%20Log%20Search

Verifier Stage Environment

  • Version:
Verifier:
rpm -qa | grep verifier
Example: fxa-browserid-verifier-svcops <latest version>
  • AWS
    • Shared:
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-elasticsearch
      • shared-rabbitmq
      • shared-rabbitmq
      • shared-bastion
      • shared-heka
    • fxa-browserid-verifier (2 c3.large instances behind a CF stack and ELB)
  • Files
    • /data/fxa-browserid-verifier
    • /data/hekad
    • /etc/puppet
    • /etc/heka.d
    • /media/ephemeral0/*
  • Processes
    • fxa-browserid-verifer:
      • Search for node, heka, nginx, circus
  • Logs
    • /media/ephemeral0/fxa-browserid-verifier/verifier_err.log
    • /media/ephemeral0/fxa-browserid-verifier/verifier_out.log
    • /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
    • /media/ephemeral0/nginx/logs/fxa-browserid-verifier.access.log
    • /media/ephemeral0/nginx/logs/squid/access.log
    • /var/log/circus.log
    • /var/log/hekad/fxa-browserid_verifier.stderr.log
    • /var/log/hekad/fxa-browserid_verifier.stdout.log
    • /var/log/nginx/access.log
    • /var/log/nginx/error.log
  • Hekad
    • /etc/puppet/modules/hekad
  • QA Access via a Bastion Host
    • SSH with AWS keys to the Stage bastion host in US East 1. From there SSH directly into any instance.

/APK%20Signer%20Log%20Search

Sync 1.5 Stage Environment

  • Versions
Server-Syncstorage (sync node):
rpm -qa | grep syncstorage
Example: server-syncstorage <latest version>
  • Note: There is no longer a Sync 1.1 Stage environment.

Loads Services Cluster Environment

  • Versions
Loads Cluster/Broker/Agents:
$ cd /home/ubuntu/loads/bin
$ ./loads-runner --version
  • AWS in US West
    • loads-master (broker and agent processes)
    • loads-slave-1 (agent processes)
    • loads-slave-2 (agent processes)
    • NOTE: there is no stack or ELB for this cluster
  • Files
    • /home/ubuntu
      • loads
      • loads-aws
      • loads-web
  • Processes
    • Search for processes owned by ubuntu, loads, nginx, circus
  • Logs
    • /var/log/redis
    • /var/log/nginx
  • QA access
    • You need special access to be able to SSH into these devices
    • You need to make some changes to your .ssh/config file
  • Monitoring
  • Cluster status
    • Check directly from the Loads Cluster dashboard:
Agents statuses
Launch a health check on all agents

TokenServer and Sync 1.5 Dev Environments

  • Versions
TokenServer:
rpm -qa | grep token
Example: tokenserver-svcops <latest version>

Verifier:
rpm -qa | grep verifier
Example: fxa-browserid-verifier-svcops <latest version>

Server-Syncstorage (sync node):
rpm -qa | grep syncstorage
Example: server-syncstorage <latest version>
  • AWS
    • This is part of the dev-lcip-org CloudFormation stack
      • TokenServer: Search for the fxa-tokenserver instance
      • SyncServer2: Search for the fxa-syncstorage instance
      • SyncServer1: Search for the fxa-syncstorage instance
      • LogServer: Search for the fxa-logbox instance
  • Files
    • TBD
  • Processes
    • TBD
  • Logs
    • TBD
  • QA Access
    • SSH with AWS keys to the various instances
  • Firefox configs:

OPs Mana and GitHub Pages