martinezgarciadavid opened a new issue #8557: URL: https://github.com/apache/trafficserver/issues/8557
Dear all, First of all, excuse me if this is not the most appropriate place to ask about a feature, since what I would like to ask is not an issue related with the implementation of this software. We have a validation scenery consisting of a single origin server and an instance of Apache Traffic Server that listens for HTTP requests from a client and redirects those requests to the origin server. ATS works here as a reverse proxy without content caching, so every request from the client is sent to ATS, which always redirects it to the origin server. We've been using a single remap rule in the configuration of this scenery without any trouble so far. The infrastructure behind ATS is transparent for the client, and it is only aware of the existence of the proxy. We are now extending this initial scenery with two additional origin servers, so that we have three origin servers and the ATS instance. The objective now is, for every client request, to randomly select an origin server and redirect these requests to it. For this purpose, it is a requirement that the origin server selection is done in an application developed by us. This application is aware of the presence of all origin servers and has their IP addresses. It exposes a REST API with a resource which, when called, randomly selects the origin server and returns the decision in a JSON object. We want ATS to contact this REST API when a client request is received and, based on the result, redirect the request to the selected origin server. We have been looking at the documentation related with plugin development and remap plugins, which apparently could give us the required tools to implement the desired functionality. However, I would like to ask you, please, if there is some functionality already built-in in ATS that we could use for this. If not, could we achieve to implement this functionality by coding a custom plugin? Thanks a lot. Kind regards. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
