-
Notifications
You must be signed in to change notification settings - Fork 370
Logging for medium scale deployment
Logging is an essential part in sunbird because all the applications are running inside the docker swarm. As it is hard to retrieve logs from the containers, log aggregation provides developers and support teams with special glasses which enable them to see logs without overhead.
Sunbird Log aggregation overview (https://github.com/project-sunbird/sunbird-devops/wiki/Log-aggregation-overview)
For the medium scale deployment, we will use the same docker swarm(app server) for deploying the logging stack. Make sure logger stack is deployed after the sunbird-core services deployment.
- Login to app-server.
- cd sunbird-devops/deploy
- Update the
Logging
configuration block inside~/sunbird-devops/deploy/config
file. - ./sunbird_install.sh -s logger
NOTE: For logging setup, we need the different version of elasticsearch(v^2.4). Above script will install elasticsearch(v^2.4) on the app-server because we already have another version of elasticsearch on db-server which is used by sunbird application.
- For the variables vault_google_client_id, vault_google_client_secret follow the below steps:
- Goto browser, run the link
https://console.developers.google.com/apis/credentials
- Click
Create
- Provide
project name
- Click
create credentials
and select optionOAuth client ID
- Configure consent screen
- Fill the mandatory items
- Select Web application 8.Set Authorised JavaScript origins: https://{{your_dns_name}} Authorised redirect URIs : https://{{your_dns_name}}/oauth2/callback
- Click
create
- Set these values in config vault_google_client_id: Client ID vault_google_client_secret: Client secret