Open oneonestar opened 3 weeks ago
I merged #317 now. Once you rebase here you might be able to address my comment about the config here. I think we should end up with the same config as in Trino ideally. So
jvm.config config.properties node.properties (maybe not even necessary) log.properties
If we leave the http config in this PR in the YAML file for now I am good with that but maybe we can already have all of them under one config node or so
launcher.py
which supports YAML.launcher.py
read this file and prepare the directories and symlinks. We can set log.output-file
in httpConfig
without using node.properties.httpConfig
.
jvm.config
- This is read by launcher.py. We can't set JVM config the config file unless we write our own version of
launcher.py
which supports YAML.
Yeah.. we can do that later .. ideally NOT with a python requirement.
node.properties (maybe not even necessary)
- Similar to above,
launcher.py
read this file and prepare the directories and symlinks. We can setlog.output-file
inhttpConfig
without using node.properties.- log.properties
Agreed
- Airlift expects this as a file LoggingConfiguration.java. We can allow setting log level in YAML, read the YAML, write them to a properties file and sent the file path to Airlift. I'm not sure if we want to do this.
Probably not in this PR. We will work with the airlift team to figure out how to proceed in terms of supporting yaml or toml or whatever to do next.
config.properties
- Everything that can be set in config.properties for Airlift can be set in
httpConfig
.
Given the scope is way larger than just configuring HTTP I would hope we can come up with a better name.. just config
or globalConfig
or I dont know..
How about serverConfig
?
How about
serverConfig
?
Thats good with me. @vishalya @willmostly @Chaho12 ?
How about serverConfig?
sounds good as it replaces requestRouter & server
configs in yaml.
Btw why is historySize and requestBufferSize removed? does gateway now read all data from history?
For historySize
, AFAIK we never use this value. No code is using this value since the initial git commit.
The equivalent for requestBufferSize
is http-client.request-buffer-size
in Airlift. Let me update the doc for that.
For historySize, AFAIK we never use this value. No code is using this value since the initial git commit.
Yeah code does not use historySize at all but i think the intent was to limit number of history in one api call (api requests all history at once so if too many history is called at once, ui lags) i don't think this is needed anymore in current ui. Pagination is added.
Could you maybe review @wendigo since you know a lot about this stuff already?
@mosabua Let's merge it and improve in follow ups
We decided in team sync today that we will merge early next week to give @vishalya and others a chance to look.
@mosabua sure, I'd prefer to merge it now and improve it right away but I'm fine with delaying that
@mosabua sure, I'd prefer to merge it now and improve it right away but I'm fine with delaying that
Monday ;-)
@mosabua ages :P
Description
Second part of Airlift migration #41. Depends on #317. This PR migrate Jetty Proxy (ie.
ProxyHandler
andProxyServletImpl
) to Airlift.Motivation
requestRouter
,applicationConnectors
andadminConnectors
ports into one single port managed by Airlift. The TLS issues caused by routing between these ports will be gone.TODO
Release notes
( ) Release notes are required, with the following suggested text: