Skip to content

Commit

Permalink
[Improvement]: Implement a stateless overview manager. (#3429)
Browse files Browse the repository at this point in the history
* table optimizing info

* table runtime meta

* Controller donot depend on tableService

* ci

* ci

* ci

* ci

* stateless overview

* stateless overview

* ci

* ci

---------

Co-authored-by: zhangyongxiang.alpha <[email protected]>
Co-authored-by: ZhouJinsong <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2025
1 parent 677e344 commit 57cc34c
Show file tree
Hide file tree
Showing 12 changed files with 343 additions and 438 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@ public class AmoroManagementConf {
.withDescription(
"The number of hours that self-optimizing runtime data expire interval.");

public static final ConfigOption<Duration> OVERVIEW_CACHE_REFRESH_INTERVAL =
ConfigOptions.key("overview-cache.refresh-interval")
.durationType()
.defaultValue(Duration.ofSeconds(180))
.withDescription("Interval for refreshing overview cache.");

public static final ConfigOption<Integer> OVERVIEW_CACHE_MAX_SIZE =
ConfigOptions.key("overview-cache.max-size")
.intType()
.defaultValue(3360)
.withDescription("Max size of overview cache.");

public static final ConfigOption<String> DB_TYPE =
ConfigOptions.key("database.type")
.stringType()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public DashboardServer(
new TableController(catalogManager, tableManager, tableDescriptor, serviceConfig);
this.terminalController = new TerminalController(terminalManager);
this.versionController = new VersionController();
this.overviewController = new OverviewController();
OverviewManager manager = new OverviewManager(serviceConfig);
this.overviewController = new OverviewController(manager);

this.authType = serviceConfig.get(AmoroManagementConf.HTTP_SERVER_REST_AUTH_TYPE);
this.basicAuthUser = serviceConfig.get(AmoroManagementConf.ADMIN_USERNAME);
Expand Down

This file was deleted.

Loading

0 comments on commit 57cc34c

Please sign in to comment.