Skip to content

document all the route annotations and PR11984 #3301

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

Merged
merged 1 commit into from
Jan 6, 2017

Conversation

JacobTanenbaum
Copy link

No description provided.


By default, a server-side timeout is set across all routes. It is possible to
change that timeout using an annotation in the route configuration.
By default, or using an environment variable a number of configuration options
Copy link

Choose a reason for hiding this comment

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

Maybe reword this - sounds a bit odd by default or using - something like Using environment variables as defined in <add-link-to-section>, a router can set the default options for all the routes it exposes. An individual route can choose to override some of these defaults by providing specific configuration via/in (I like via but its normally not used in docs) its annotations.

@JacobTanenbaum
Copy link
Author

@ramr does this clear it up?

@ramr
Copy link

ramr commented Dec 1, 2016

LGTM

Copy link

@ramr ramr left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -219,6 +220,7 @@ variables on the *deployment config* for the router to alter its configuration.
|`*ROUTER_SUBDOMAIN*`| | The template that should be used to generate the hostname for a route without spec.host (e.g. `${name}-${namespace}.myapps.mycompany.com`).
|`*ROUTER_SYSLOG_ADDRESS*` | | Address to send log messages. Disabled if empty.
|`*ROUTER_TCP_BALANCE_SCHEME*` | source | Load-balancing strategy for multiple endpoints for pass-through routes. Available options are `source`, `roundrobin`, or `leastconn`.
|`*ROUTER_LOAD_BALANCE_ALGORITHM*` | leastconn | Load-balanceing strategy for multiple endpoints for edge and reencrypt terminated routes. Available options are `source`, `roundrobin`, or `leastconn`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Load-balanceing => Load-balancing

Doesn't this also apply to http routes?

.Route Annotations
[cols="2*", options="header"]
|===
|Variable | Description
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we sort this section alphabetically by annotation?

[cols="2*", options="header"]
|===
|Variable | Description
|`*haproxy.router.openshift.io/balance*`| sets the load balance algorithm. Available options are `source`, `roundrobin`, or `leastconn`.
Copy link
Contributor

Choose a reason for hiding this comment

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

The first letter of the description should be uppercase to match the other table.

Should we indicate the ENV that provides the default (perhaps in a new column)

load-balancing (or make the pervious one match this case)

|===
|Variable | Description
|`*haproxy.router.openshift.io/balance*`| sets the load balance algorithm. Available options are `source`, `roundrobin`, or `leastconn`.
|`*haproxy.router.openshift.io/timeout*` | sets a server side timeout. overwrites `*ROUTER_DEFAULT_SERVER_TIMEOUT*` for that route
Copy link
Contributor

Choose a reason for hiding this comment

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

server-side

Just make the default env be noted in a new column

|Variable | Description
|`*haproxy.router.openshift.io/balance*`| sets the load balance algorithm. Available options are `source`, `roundrobin`, or `leastconn`.
|`*haproxy.router.openshift.io/timeout*` | sets a server side timeout. overwrites `*ROUTER_DEFAULT_SERVER_TIMEOUT*` for that route
|`*haproxy.router.openshift.io/rate-limit-connections*`| setting to true enables rate limiting functionality
Copy link
Contributor

Choose a reason for hiding this comment

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

Should true be in quotes? Or in a fixed width font? What's the style elsewhere?

|`*haproxy.router.openshift.io/balance*`| sets the load balance algorithm. Available options are `source`, `roundrobin`, or `leastconn`.
|`*haproxy.router.openshift.io/timeout*` | sets a server side timeout. overwrites `*ROUTER_DEFAULT_SERVER_TIMEOUT*` for that route
|`*haproxy.router.openshift.io/rate-limit-connections*`| setting to true enables rate limiting functionality
|`*haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp*`| limits the number of concurrent tcp connections shared by an IP address
Copy link
Contributor

Choose a reason for hiding this comment

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

TCP? What's the style?

|`*haproxy.router.openshift.io/rate-limit-connections*`| setting to true enables rate limiting functionality
|`*haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp*`| limits the number of concurrent tcp connections shared by an IP address
|`*haproxy.router.openshift.io/rate-limit-connections.rate-tcp*`| limits the rate at which an IP address can make tcp connections
|`*haproxy.router.openshift.io/rate-limit-connections.rate-http*`| limits the rate at which an IP address can make http requests
Copy link
Contributor

Choose a reason for hiding this comment

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

HTTP? What's the style?

|`*haproxy.router.openshift.io/rate-limit-connections.concurrent-tcp*`| limits the number of concurrent tcp connections shared by an IP address
|`*haproxy.router.openshift.io/rate-limit-connections.rate-tcp*`| limits the rate at which an IP address can make tcp connections
|`*haproxy.router.openshift.io/rate-limit-connections.rate-http*`| limits the rate at which an IP address can make http requests
|`*haproxy.router.openshift.io/disable_cookies*`| disables the use of cookies, the balance algorithm is used to determine which backend serves connections everytime
Copy link
Contributor

Choose a reason for hiding this comment

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

Disables the use of cookies to track related connections. If set to 'true' the balance algorithm is used to choose which back-end serves connections for each HTTP request.

|`*haproxy.router.openshift.io/rate-limit-connections.rate-tcp*`| limits the rate at which an IP address can make tcp connections
|`*haproxy.router.openshift.io/rate-limit-connections.rate-http*`| limits the rate at which an IP address can make http requests
|`*haproxy.router.openshift.io/disable_cookies*`| disables the use of cookies, the balance algorithm is used to determine which backend serves connections everytime
|`*router.openshift.io/haproxy.health.check.interval*`| set the health check interval for backend endpoints
Copy link
Contributor

Choose a reason for hiding this comment

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

Sets the interval for the back-end health checks.

Copy link
Contributor

@knobunc knobunc left a comment

Choose a reason for hiding this comment

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

LGTM

@knobunc
Copy link
Contributor

knobunc commented Dec 8, 2016

@JacobTanenbaum What releases should this be for? Please put that in the PR description.

@openshift/team-documentation PTAL. This has passed technical review.

@ahardin-rh
Copy link
Contributor

LGTM. I added a to_followup label, as I will make some minor follow-up edits to the topic as a whole in a follow-up PR. @JacobTanenbaum Is this for 3.4? Thanks!

@ahardin-rh
Copy link
Contributor

@JacobTanenbaum Also, can you please give this a squash?

change log

added a referance name to Configuration parameters and reworded the
introduction to Route-specific Annotations

address a number of issues brought by ben bennet

- Load-balanceing => Load-balancing for ROUTER_LOAC_BALANCE_ALGORITHM
- sorted annotation table alphabetically
- first letter of annotation tables descriptions are uppercase
- server side => server-side in description of haproxy.router.openshift.io/timeout
- added a column to the annotations for the default env variables they overwrite
- changed true to fixed witdth in description of haproxy/openshift.io/rate-limit-connections
- changed occurances of tcp, http, https to TCP, HTTP, HTTPS respectivly to conform with style
- changed description of haproxy.router.openshift.io/disable_cookies and
router.openshift.io/haproxy.health.check.interval
@JacobTanenbaum
Copy link
Author

@ahardin-rh squashed

@ahardin-rh
Copy link
Contributor

@JacobTanenbaum Thanks! Can you please check my labels? I am assuming this is for 3.4. is that correct?

@JacobTanenbaum
Copy link
Author

@knobunc is this for 3.4 or 3.5?

@knobunc
Copy link
Contributor

knobunc commented Jan 6, 2017

@JacobTanenbaum if all of the annotations are in 3.4, then it can be for 3.4. Can you confirm if they are?

@JacobTanenbaum
Copy link
Author

they are in 3.4

@ahardin-rh
Copy link
Contributor

Thanks!

@ahardin-rh ahardin-rh merged commit 0c32bfc into openshift:master Jan 6, 2017
@ahardin-rh
Copy link
Contributor

[rev_history]
|xref:../architecture/core_concepts/routes.adoc#architecture-core-concepts-routes[Core Concepts -> Routes]
|Added descriptions of all xref:../architecture/core_concepts/routes.adoc#route-specific-annotations[route annotations].
%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants