Closed dhruv-bansal closed 1 month ago
Would you mind sending me your full configuration file?
Here is the complete config file
access_point:
listeners:
- address: 0.0.0.0:8080
mcps:
- id: test
upstream_id: 1
path: https://petstore.swagger.io/v2/swagger.json
upstreams:
- id: 1
nodes:
"127.0.0.1:8091": 1
scheme: https
pass_host: preserve
This is because this project depends on pingora, and the log is printed twice in its source code. https://github.com/cloudflare/pingora/blob/f69e2615d47236e68bcedcea29af951cbc7e9f60/pingora-core/src/server/mod.rs#L386
/// Start the server using [Self::run] and default [RunArgs].
pub fn run_forever(self) -> ! {
info!("Server starting");
self.run(RunArgs::default());
info!("All runtimes exited, exiting now");
std::process::exit(0)
}
/// Start the server
///
/// This function will block forever until the server needs to quit. So this would be the last
/// function to call for this object.
///
/// Note: this function may fork the process for daemonization, so any additional threads created
/// before this function will be lost to any service logic once this function is called.
pub fn run(mut self, run_args: RunArgs) {
info!("Server starting");
let conf = self.configuration.as_ref();
#[cfg(unix)]
if conf.daemon {
info!("Daemonizing the server");
fast_timeout::pause_for_fork();
daemonize(&self.configuration);
fast_timeout::unpause();
}
thanks for the input @sxhxliang
Why mcp-access-point is started - following logs are getting printed twice every time
Is that means pingora server is running twice?