Skip to content

Commit

Permalink
[infra] chore: upgrade Loki and stop overwriting /etc/hosts (#1862)
Browse files Browse the repository at this point in the history
  • Loading branch information
GresilleSiffle authored Dec 7, 2023
1 parent 5f3e30e commit 5283f56
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
6 changes: 3 additions & 3 deletions infra/ansible/inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ all:
django_api_throttle_email: "5/min"
chrome_extension_id: iahbndmibajbfljmlaaaikgognekamno

loki_version: "v2.2.1"
loki_version: "v2.9.2"
nvm_version: "v0.38.0"
npm_lts_version: "hydrogen" # codename for Node.js 18 (LTS)
frontend_scheme: http
Expand Down Expand Up @@ -85,7 +85,7 @@ all:
django_api_throttle_email: "5/min"
chrome_extension_id: iahbndmibajbfljmlaaaikgognekamno

loki_version: "v2.2.1"
loki_version: "v2.9.2"
nvm_version: "v0.38.0"
npm_lts_version: "hydrogen" # codename for Node.js 18 (LTS)
frontend_scheme: https
Expand Down Expand Up @@ -155,7 +155,7 @@ all:
django_api_throttle_email: "12/min"
chrome_extension_id: nidimbejmadpggdgooppinedbggeacla

loki_version: "v2.2.1"
loki_version: "v2.9.2"
nvm_version: "v0.38.0"
npm_lts_version: "hydrogen" # codename for Node.js 18 (LTS)
frontend_scheme: https
Expand Down
10 changes: 6 additions & 4 deletions infra/ansible/roles/base/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
hostname:
name: "{{machine_name}}"

- name: Copy hosts file
template:
src: hosts
dest: /etc/hosts
- name: Configure hosts file
blockinfile:
path: /etc/hosts
block: |
127.0.1.1 {{machine_name}} {{domain_name}} {{api_domain_name}}
- name: Install minimal set of packages
apt:
Expand Down
7 changes: 0 additions & 7 deletions infra/ansible/roles/base/templates/hosts

This file was deleted.

13 changes: 13 additions & 0 deletions infra/ansible/roles/logging/files/loki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ingester:
chunk_idle_period: 5m
chunk_retain_period: 30s
max_transfer_retries: 0
wal:
enabled: false

schema_config:
configs:
Expand All @@ -39,7 +41,18 @@ limits_config:

chunk_store_config:
max_look_back_period: 0s
chunk_cache_config:
embedded_cache:
enabled: true
max_size_mb: 256

table_manager:
retention_deletes_enabled: false
retention_period: 0s

query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 256

0 comments on commit 5283f56

Please sign in to comment.