EIDA / mediatorws

EIDA NG Mediator/Federator web services
GNU General Public License v3.0
6 stars 6 forks source link

Improving federated /fdsnws/station performance #112

Closed damb closed 4 years ago

damb commented 4 years ago

@javiquinte,

I'd like to raise once more the question which strategy should be implemented in order to increase the overall performance of /fdsnws/station/1/query?format=xml&level=channel|response queries at eida-federator. Let me first describe which strategy is implemented at the time being:

As a consequence, fdsnws-station metadata is only requested from EIDA DCs if the granular request could not be served from the backend cache. @kaestli mentioned the impact of this approach on logging during the EIDA meeting in De Bilt (2020-Q1).

So the question arises, why eida-federator does not use the station metadata already gathered while harvesting its routing information? Instead of using level=channel one simply could immediately request station metadata with level=response and demultiplex the StationXML data in order to fill a cache for fdsnws-station requests. Well, that's right if there wouldn't be the following issues:

From my point of view, maintaining a central inventory at eida-federator level is only very difficult to achieve and contradicts the original design goals. However, I'm open for a discussion. If there is a simple way around I'm happy to implement the suggestions.

Thanks in advance for any kind of comments.

javiquinte commented 4 years ago

Hi @damb . Thanks for the clarifying concepts. I think that in these last four years no one ever asked for a centralized cache of the whole inventory. We are trying to get away from that. According to what has been presented in the ETC, the Federator performance is great and ready to be tried in production. At this stage, the only thing that remains is to put the Federator in place and test it with real use cases/real users.