-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
const ROUND_ROBIN_ALGORITHM_HELPER_TEXT = | ||
'Round robin distributes connection requests to backend servers in weighted circular order.'; | ||
import type { Algorithm } from '@linode/api-v4'; | ||
|
||
const LEAST_CONNECTIONS_ALGORITHM_HELPER_TEXT = | ||
'Least connections assigns connections to the backend with the least connections.'; | ||
|
||
const SOURCE_ALGORITHM_HELPER_TEXT = "Source uses the client's IPv4 address."; | ||
|
||
export const ALGORITHM_HELPER_TEXT = { | ||
leastconn: LEAST_CONNECTIONS_ALGORITHM_HELPER_TEXT, | ||
export const ALGORITHM_HELPER_TEXT: Record<Algorithm, string> = { | ||
leastconn: | ||
'Least connections assigns connections to the backend with the least connections.', | ||
ring_hash: '', // @todo M3-9019 - Add copy as part of UDP NodeBalancer project | ||
roundrobin: ROUND_ROBIN_ALGORITHM_HELPER_TEXT, | ||
source: SOURCE_ALGORITHM_HELPER_TEXT, | ||
roundrobin: | ||
'Round robin distributes connection requests to backend servers in weighted circular order.', | ||
source: "Source uses the client's IPv4 address.", | ||
}; |