Skip to content

Expose setting some HTTP/2 tunables via sni.yaml#8818

Merged
randall merged 1 commit intoapache:masterfrom
randall:sni-override-h2-buffer-sizes
Jun 1, 2022
Merged

Expose setting some HTTP/2 tunables via sni.yaml#8818
randall merged 1 commit intoapache:masterfrom
randall:sni-override-h2-buffer-sizes

Conversation

@randall
Copy link
Contributor

@randall randall commented May 4, 2022

proxy.config.http2.default_buffer_water_mark can now be set on a
per-domain basis.

@randall randall added this to the 10.0.0 milestone May 4, 2022
@randall randall self-assigned this May 4, 2022
@randall randall force-pushed the sni-override-h2-buffer-sizes branch from e85cf02 to 2725f56 Compare May 4, 2022 18:45
@bryancall bryancall requested a review from bneradt May 9, 2022 23:06
Copy link
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks fine in general. I need some help thinking through the logic and default values in proxy/http2/Http2ClientSession.cc.

this->write_buffer = new_MIOBuffer(buffer_block_size_index);

uint32_t buffer_water_mark;
if (this->_vc->options.http2_buffer_water_mark != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you help me think through this: is this OK if the value is the default of -1? Or is _vc->options.http2_buffer_water_mark guaranteed to not be -1 here? I might be missing something...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good callout. I might've posted this PR in mid transition from the PR this required.

The desire is to only apply the change if the override(via sni.yaml)has been explicitly been set. Or if it's not explicitly set , to use the default from records.config.

Maybe I should use std::optional here as well instead of trying to track/remember sentinel values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to use std::optional. I think it's clearer now

@randall randall force-pushed the sni-override-h2-buffer-sizes branch 2 times, most recently from d842cb6 to 8b1da7f Compare May 19, 2022 02:51
@randall randall force-pushed the sni-override-h2-buffer-sizes branch from 8b1da7f to b93c6cf Compare May 19, 2022 20:17
proxy.config.http2.default_buffer_water_mark can now be set on a
per-domain basis.
@randall randall force-pushed the sni-override-h2-buffer-sizes branch from b93c6cf to 2a28f3b Compare May 31, 2022 18:10
Copy link
Member

@maskit maskit left a comment

Choose a reason for hiding this comment

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

Thank you for updating the code. I think this is going to be a great working example for those who adds similar hints. And maybe we can improve/cleanup other places with this.

@maskit
Copy link
Member

maskit commented Jun 1, 2022

I approved this PR, but someone else need to approve it to merge.

@randall randall merged commit 63d09be into apache:master Jun 1, 2022
@randall randall deleted the sni-override-h2-buffer-sizes branch June 1, 2022 14:33
randall added a commit to randall/trafficserver that referenced this pull request Jun 1, 2022
proxy.config.http2.default_buffer_water_mark can now be set on a
per-domain basis.

(cherry picked from commit 63d09be)
@randall
Copy link
Contributor Author

randall commented Jun 1, 2022

For back porting to 9.2.x: #8875

zwoop pushed a commit that referenced this pull request Jun 1, 2022
proxy.config.http2.default_buffer_water_mark can now be set on a
per-domain basis.

(cherry picked from commit 63d09be)
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  Update to Proxy Verifier v2.3.3 (apache#8868)
  Handle hit as miss when cach obj is invalid (apache#8871)
  Expose setting some HTTP/2 tunables via sni.yaml (apache#8818) (apache#8875)
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.

3 participants