Skip to content

Commit

Permalink
clean up constants a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Dec 16, 2024
1 parent 3838be0 commit fabd1a4
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions packages/manager/src/features/NodeBalancers/constants.ts
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.",
};

0 comments on commit fabd1a4

Please sign in to comment.