Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GW Entity Targets #178

Merged
merged 9 commits into from
Dec 19, 2024
Merged

GW Entity Targets #178

merged 9 commits into from
Dec 19, 2024

Conversation

Guaris
Copy link
Contributor

@Guaris Guaris commented Dec 18, 2024

Preview Links

Pulled from here
#168

Checklist

  • Every page is page one
  • Tested how-to docs. If not, note why here.
  • All pages contain metadata
  • Updated sources.yaml. For more info review track docs changes
  • Any new docs link to existing docs.

@Guaris Guaris requested a review from a team as a code owner December 18, 2024 22:12
Copy link

netlify bot commented Dec 18, 2024

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 3bd8c1c
🔍 Latest deploy log https://app.netlify.com/sites/kongdeveloper/deploys/67648dfd29cd930008df122c
😎 Deploy Preview https://deploy-preview-178--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

## Set up a Target

{% entity_example %}
type: target
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: target
type: target
data:
target: httpbun.com:80
weight: 100

This should be just one target

- target: httpbun.com:80
weight: 100
- target: httpbin.konghq.com:80
weight: 100
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to add the instructions here

Comment on lines 56 to 57
style id1 rx:10,ry:10
style id2 stroke:none
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove these lines


## Use cases for targets
subgraph id2 ["`Targets (example_upstream)`"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
subgraph id2 ["`Targets (example_upstream)`"]
subgraph id2 ["`Targets`"]

This is a known issue, I would say let's remove the extra text for now

## What is a target?
## What is a Target?

{{page.description}} Each [Upstream](/gateway/entities/upstream/) can have many Targets. Targets are used by Upstreams for load balancing. For example, if you have an `example_upstream` Upstream, you can point it to two different Targets: `httpbin.konghq.com` and `httpbun.com`. This is so that if one of the servers (like `httpbin.konghq.com`) is unavailable, it automatically detects the problem and routes all traffic to the working server (`httpbun.com`).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we write a full sentence instead of including the description? It might change in the future and I wouldn't expect it to affect the first paragraph

@Guaris Guaris merged commit 968896b into main Dec 19, 2024
10 checks passed
@Guaris Guaris deleted the targets branch December 19, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants