Application Load Balancer inspects packets and creates access points to HTTP and HTTPS headers. It identifies the type of load and spreads it out to the target with higher efficiency based on application traffic flowing in HTTP messages. Application Load Balancer also conducts health checks on connected services on a per-port basis to evaluate a range of possible code and HTTP errors. A developer receives detailed metrics following the checks.
Replace port with nodeport mapped to 9999 and health port (additional settings) mapped to 8080 as shown below.
Logiq would have created auto scaling group for common and Ingest nodes. Associate the Ingest ASG with flash target group.
Associate the common ASG with 2 groups created
Create Application load balancer and in the listener section
We need to route the traffic as per the below below ingress rules along with the service.
1
rules:
2
- http:
3
paths:
4
- backend:
5
service:
6
name: coffee
7
port:
8
number: 80
9
path: /*
10
pathType: ImplementationSpecific
11
- backend:
12
service:
13
name: logiq-flash
14
port:
15
number: 9999
16
path: /v1/json_batch
17
pathType: ImplementationSpecific
18
- backend:
19
service:
20
name: logiq-flash
21
port:
22
number: 9999
23
path: /v1/json
24
pathType: ImplementationSpecific
25
- backend:
26
service:
27
name: logiq-flash-ml-np
28
port:
29
number: 9999
30
path: /v1/*
31
pathType: ImplementationSpecific
32
- backend:
33
service:
34
name: logiq-flash-ml-np
35
port:
36
number: 9999
37
path: /v2/*
38
pathType: ImplementationSpecific
39
- backend:
40
service:
41
name: coffee
42
port:
43
number: 80
44
path: /*
45
pathType: ImplementationSpecific
46
​
Copied!
​
Click on manual View/edit Add edit rules, click on + section and configure the rules as shown below to the various target groups.
Note: The rules should be in the same order as shown below
If you have deployed the Logiq on private subnet, you may need to map global accelerator (under Integrated services) to access the public endpoints and DNS on top of it.
If you want to route traffic on http(port:80), ensure your listener rules are configured on port 80
If you want to route traffic on https(port:443), ensure your listener rules are configured on port 443. As a prerequisite, your global accelerator should have all the certificates configured for this to work.