Skip to content
Snippets Groups Projects
Unverified Commit 80bc9d0f authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

refactor: Move Repology rate limits to http defaults (#30996)

parent 0cfb1827
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@ export const removedPresets: Record<string, string | null> = {
'customManagers:helmChartYamlAppVersions',
'regexManagers:mavenPropertyVersions': 'customManagers:mavenPropertyVersions',
'regexManagers:tfvarsVersions': 'customManagers:tfvarsVersions',
'workarounds:reduceRepologyServerLoad': null,
};
const renamedMonorepos: Record<string, string> = {
......
......@@ -14,7 +14,6 @@ export const presets: Record<string, Preset> = {
'workarounds:ignoreHttp4sDigestMilestones',
'workarounds:typesNodeVersioning',
'workarounds:nodeDockerVersioning',
'workarounds:reduceRepologyServerLoad',
'workarounds:doNotUpgradeFromAlpineStableToEdge',
'workarounds:supportRedHatImageVersion',
'workarounds:javaLTSVersions',
......@@ -201,17 +200,6 @@ export const presets: Record<string, Preset> = {
},
],
},
reduceRepologyServerLoad: {
description:
'Limit requests to reduce load on Repology servers until we can fix this properly, see issue `#10133`.',
hostRules: [
{
concurrentRequestLimit: 1,
matchHost: 'repology.org',
maxRequestsPerSecond: 0.5,
},
],
},
supportRedHatImageVersion: {
description:
'Use specific versioning for Red Hat-maintained container images.',
......
......@@ -9,6 +9,10 @@ const concurrencyDefaults: ConcurrencyLimitRule[] = [
matchHost: 'registry.npmjs.org',
concurrency: 999,
},
{
matchHost: 'repology.org',
concurrency: 1,
},
{
matchHost: '*',
concurrency: 16,
......@@ -35,6 +39,10 @@ const throttleDefaults: ThrottleLimitRule[] = [
matchHost: 'https://plugins.gradle.org',
throttleMs: 50,
},
{
matchHost: 'repology.org',
throttleMs: 2000,
},
];
let throttleLimits: ThrottleLimitRule[] = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment