mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Bumping up sentry and node text servers.
This commit is contained in:
parent
ba3618cc19
commit
77f8cc2324
4 changed files with 12 additions and 5 deletions
|
@ -16,6 +16,9 @@ groups:
|
|||
node: inventory_hostname.startswith('node')
|
||||
node_socket: inventory_hostname.startswith('node-socket')
|
||||
node_images: inventory_hostname.startswith('node-images')
|
||||
node_text: inventory_hostname.startswith('node-text')
|
||||
node_page: inventory_hostname.startswith('node-page')
|
||||
node_favicons: inventory_hostname.startswith('node-favicons')
|
||||
|
||||
# debugs: inventory_hostname.startswith('debug')
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ frontend public
|
|||
|
||||
use_backend app_push if { hdr_end(host) -i push.newsblur.com }
|
||||
use_backend node_socket if { path_beg /v3/socket.io/ }
|
||||
use_backend node_favicon if { path_beg /rss_feeds/icon/ }
|
||||
use_backend node_favicons if { path_beg /rss_feeds/icon/ }
|
||||
use_backend node_text if { path_beg /rss_feeds/original_text_fetcher }
|
||||
use_backend node_images if { hdr_end(host) -i imageproxy.newsblur.com }
|
||||
use_backend node_images if { hdr_end(host) -i imageproxy2.newsblur.com }
|
||||
|
@ -174,7 +174,7 @@ backend node_socket
|
|||
server {{host}} {{host}}.node.nyc1.consul:8008
|
||||
{% endfor %}
|
||||
|
||||
backend node_favicon
|
||||
backend node_favicons
|
||||
http-check expect rstatus 200|503
|
||||
option httpchk GET /rss_feeds/icon/1
|
||||
balance roundrobin
|
||||
|
@ -184,7 +184,10 @@ backend node_text
|
|||
http-check expect rstatus 200|503
|
||||
option httpchk GET /rss_feeds/original_text_fetcher?test=1
|
||||
balance roundrobin
|
||||
server-template node-text 1 _node-text._tcp.service.nyc1.consul:8008 check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
default-server check inter 2000ms resolvers consul resolve-prefer ipv4 resolve-opts allow-dup-ip init-addr none
|
||||
{% for host in groups.node_text %}
|
||||
server {{host}} {{host}}.node.nyc1.consul:8008
|
||||
{% endfor %}
|
||||
|
||||
backend node_page
|
||||
http-check expect rstatus 200|503
|
||||
|
|
|
@ -228,8 +228,9 @@ resource "digitalocean_droplet" "discovery" {
|
|||
}
|
||||
|
||||
resource "digitalocean_droplet" "node-text" {
|
||||
count = 2
|
||||
image = var.droplet_os
|
||||
name = "node-text"
|
||||
name = contains([0], count.index) ? "node-text" : "node-text${count.index+1}"
|
||||
region = var.droplet_region
|
||||
size = var.droplet_size
|
||||
ssh_keys = [digitalocean_ssh_key.default.fingerprint]
|
||||
|
|
|
@ -54,7 +54,7 @@ variable "droplet_os" {
|
|||
|
||||
variable "sentry_droplet_size" {
|
||||
type = string
|
||||
default = "s-4vcpu-8gb"
|
||||
default = "s-8vcpu-16gb"
|
||||
}
|
||||
|
||||
variable "metrics_droplet_size" {
|
||||
|
|
Loading…
Add table
Reference in a new issue