-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker build * Cleanup apt * Add iex.sh to allow to use observer in prod * Improve cache Neurow * Improve main SSE loop * Improve monitoring on connections * Export memory usage Load test * Allow to configure User-Agent * Support ping * Various fixes
- Loading branch information
Showing
17 changed files
with
194 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
resource "aws_security_group" "internal_lb" { | ||
name = "${var.resource_prefix}-lb-load-test" | ||
vpc_id = data.aws_subnet.first_public.vpc_id | ||
} | ||
|
||
resource "aws_security_group_rule" "internal_lb_outbound" { | ||
type = "egress" | ||
from_port = 2999 | ||
to_port = 2999 | ||
protocol = "tcp" | ||
cidr_blocks = ["0.0.0.0/0"] | ||
security_group_id = aws_security_group.internal_lb.id | ||
} | ||
|
||
resource "aws_lb" "internal" { | ||
name = "${var.resource_prefix}-load-test" | ||
internal = true | ||
load_balancer_type = "network" | ||
|
||
subnets = var.public_subnet_ids | ||
security_groups = [aws_security_group.internal_lb.id] | ||
|
||
enable_cross_zone_load_balancing = false | ||
} | ||
|
||
resource "aws_lb_listener" "internal" { | ||
load_balancer_arn = aws_lb.internal.arn | ||
port = "2999" | ||
protocol = "TCP" | ||
|
||
default_action { | ||
type = "forward" | ||
target_group_arn = aws_lb_target_group.internal.arn | ||
} | ||
} | ||
|
||
resource "aws_lb_target_group" "internal" { | ||
name = "${var.resource_prefix}-load-test" | ||
port = 2999 | ||
protocol = "TCP" | ||
vpc_id = data.aws_subnet.first_public.vpc_id | ||
|
||
health_check { | ||
path = "/metrics" | ||
port = 2999 | ||
protocol = "HTTP" | ||
interval = 10 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh -e | ||
|
||
if [ "$POD_IP" != "" ]; then | ||
export RELEASE_DISTRIBUTION="name" | ||
export RELEASE_NODE="neurow@${POD_IP}" | ||
fi | ||
|
||
/app/bin/neurow remote |
Oops, something went wrong.