Class RefreshDnsForAllDomainsAction
- java.lang.Object
-
- google.registry.tools.server.RefreshDnsForAllDomainsAction
-
- All Implemented Interfaces:
java.lang.Runnable
public class RefreshDnsForAllDomainsAction extends java.lang.Object implements java.lang.Runnable
A mapreduce that enqueues DNS publish tasks on all active domains on the specified TLD(s).This refreshes DNS both for all domain names and all in-bailiwick hostnames, as DNS writers are responsible for enqueuing refresh tasks for subordinate hosts. So this action thus refreshes DNS for everything applicable under all TLDs under management.
Because there are no auth settings in the
Action
annotation, this command can only be run internally, or by pretending to be internal by setting the X-AppEngine-QueueName header, which only admin users can do.You must pass in a number of
smearMinutes
as a URL parameter so that the DNS queue doesn't get overloaded. A rough rule of thumb for Cloud DNS is 1 minute per every 1,000 domains. This smears the updates out over the next N minutes. For small TLDs consisting of fewer than 1,000 domains, passing in 1 is fine (which will execute all the updates immediately).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RefreshDnsForAllDomainsAction.RefreshDnsForAllDomainsActionMapper
Mapper to refresh DNS for all active domain resources.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-