Closed kaestli closed 4 years ago
How do you map the name of eida.noa.gein.gr
to particular port 8002
? Don't think you can do that through /etc/hosts
. Will it have to be done in the routing?
I'd like to try this idea (as a Docker container) that runs a single web server and include it in this repository. Since you have experience with this approach do you think it is possible?
I'd like to try this idea (as a Docker container) that runs a single web server and include it in this repository. Since you have experience with this approach do you think it is possible?
Bear in mind, that this approach only works if eida-federator
requests data from endpoints via HTTP GET. Currently, requests are exclusively using HTTP POST. So code changes are inevitable. In addition, we could apply an intelligent merging strategy in order to issue bulk GET requests.
Bear in mind, that this approach only works if eida-federator requests data from endpoints via HTTP GET. Currently, requests are exclusively using HTTP POST. So code changes are inevitable. In addition, we could apply an intelligent merging strategy in order to issue bulk GET requests.
No worries, I won't be able to implement this today anyway ;). Our goal was end June!
How do you map the name of eida.noa.gein.gr to particular port 8002? Don't think you can do that through /etc/hosts. Will it have to be done in the routing?
No. All traffic from the federator All eida.noa.gein.gr is host-routed to the loopback cache proxy. the cache step forwards cache misses to the proxy and header processor step under a different port. this one forwards to the "true" eida.noa.gein.gr
I started on #78. But I'm gonna need some points on how to implement this.
Closed with #85.
As the federator decomposes user requests into (typically more granular) endpoint requests following fixed rules, endpoint requests have a good probability to be repetitive, even between different user requests executed at the same (overlapping) time. Caching can be used to prevent endpoints from processing identical requests multiple times, and to prevent networks from redundant load.
The idea is: 1) rather than to the endpoint, route the federator request to a caching proxy on a local machine, This can well be the one where also the federator is running. do this by redefining the DNS of the endpoint to an alias of localhost in the local /etc/hosts
an example configuration for step 2 and 3 from federator-testing looks as follows: File /etc/apache2/sites-enabled/noa.conf Requirements: apache, mod_header, mod_proxy, mod_cache, mod_cache_http (have such a config file, and a corresponding hosts entry, for each endpoint you want to loopback proxy cache)