Skip to content

Commit

Permalink
Reduce refresh rate of specification refresh in Serving to 10 seconds (
Browse files Browse the repository at this point in the history
  • Loading branch information
woop authored Feb 20, 2020
1 parent fb39c6c commit 887f9e3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class SpecServiceConfig {
private static final Logger log = org.slf4j.LoggerFactory.getLogger(SpecServiceConfig.class);
private String feastCoreHost;
private int feastCorePort;
private static final int CACHE_REFRESH_RATE_MINUTES = 1;
private static final int CACHE_REFRESH_RATE_SECONDS = 10;

@Autowired
public SpecServiceConfig(FeastProperties feastProperties) {
Expand All @@ -51,9 +51,9 @@ public ScheduledExecutorService cachedSpecServiceScheduledExecutorService(
// reload all specs including new ones periodically
scheduledExecutorService.scheduleAtFixedRate(
cachedSpecStorage::scheduledPopulateCache,
CACHE_REFRESH_RATE_MINUTES,
CACHE_REFRESH_RATE_MINUTES,
TimeUnit.MINUTES);
CACHE_REFRESH_RATE_SECONDS,
CACHE_REFRESH_RATE_SECONDS,
TimeUnit.SECONDS);
return scheduledExecutorService;
}

Expand Down

0 comments on commit 887f9e3

Please sign in to comment.