From 130f59174473ac06002e996f6e48a0ff17dce88d Mon Sep 17 00:00:00 2001 From: Alexander Mattoni <5110855+mattoni@users.noreply.github.com> Date: Mon, 20 Jul 2026 16:03:10 +0000 Subject: [PATCH] add sticky sessions to split routing in linked records --- .../types/linked/DnsRecordLinkedRouting.yml | 9 ++------- .../linked/DnsRecordLinkedTrafficSplitting.yml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml diff --git a/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml b/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml index 17649320..448dfc4a 100644 --- a/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml +++ b/components/schemas/dns/records/types/linked/DnsRecordLinkedRouting.yml @@ -6,10 +6,5 @@ properties: oneOf: - $ref: DnsRecordLinkedHttpRouting.yml - type: "null" - variants: - type: - - array - - "null" - description: A set of weighted destinations that traffic to this record is distributed across. - items: - $ref: DnsRecordLinkedVariant.yml + traffic_splitting: + $ref: ./DnsRecordLinkedTrafficSplitting.yml diff --git a/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml b/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml new file mode 100644 index 00000000..87a59b83 --- /dev/null +++ b/components/schemas/dns/records/types/linked/DnsRecordLinkedTrafficSplitting.yml @@ -0,0 +1,16 @@ +title: DnsRecordLinkedTrafficSplitting +type: object +description: Settings for splitting traffic to this domain between two or more destinations. +required: + - sticky_sessions +properties: + variants: + type: + - array + - "null" + description: A set of weighted destinations that traffic to this record is distributed across. + items: + $ref: DnsRecordLinkedVariant.yml + sticky_sessions: + type: boolean + description: Utilize sticky sessions. When true, after the initial request, all traffic from that host will be routed to the same destination.