gbif / gbif-web

Apache License 2.0
6 stars 8 forks source link

Enumerations being requested every 30s #570

Closed MattBlissett closed 2 weeks ago

MattBlissett commented 2 weeks ago
130.225.43.150 56 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/PreservationType HTTP/1.1" 200 501 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 74 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/TaxonomicStatus HTTP/1.1" 200 107 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 91 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/TagName HTTP/1.1" 200 281 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 72 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/NameUsageIssue HTTP/1.1" 200 903 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 72 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/NameUsageSearchParameter HTTP/1.1" 200 151 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 61 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/NodeType HTTP/1.1" 200 19 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 69 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/StepType HTTP/1.1" 200 523 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 61 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/MasterSourceType HTTP/1.1" 200 34 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 56 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/StepRunner HTTP/1.1" 200 38 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 66 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/ThreatStatus HTTP/1.1" 200 188 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 66 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/RelationType HTTP/1.1" 200 65 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 66 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/MaintenanceUpdateFrequency HTTP/1.1" 200 150 hit_cached '-' 'got (https://github.com/sindresorhus/got)'
130.225.43.150 52 - [26/Apr/2024:14:34:20 +0000] "GET http://api.gbif-dev.org/v1/enumeration/basic/Kingdom HTTP/1.1" 200 101 hit_cached '-' 'got (https://github.com/sindresorhus/got)'

This isn't really a problem, as they're almost all hits on Varnish, but it seems excessively frequent to check this often.

MortenHofft commented 2 weeks ago

I do not see any reason for it to be every 30 seconds either. every 10 or 30 minutes minutes would be just as fine. I'll change that

MortenHofft commented 2 weeks ago

the reason for checking often is that it will break the graphql schemas if enums are updated and graphql doesn't know about it. And since we do not always have good processes for letting everyone know, then this is a preventive measure.

I changed it to every 30 minutes, since that is likely fine. It will only fail if we see data using it. And typically it will take a while for a new enum appearing to us seeing data using it.