-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use caffeine in CachedStore and adapt ManagedInternalForm for state p… #3607
base: develop
Are you sure you want to change the base?
Conversation
public CachedStore(Store<KEY, VALUE> store, CaffeineSpec caffeineSpec) { | ||
this.store = store; | ||
cache = Caffeine.from(caffeineSpec) | ||
// .recordStats(() -> new MetricsStatsCounter(metricRegistry, "cache."+store.toString())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics hinzufügen
backend/src/main/java/com/bakdata/conquery/models/query/ManagedQuery.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/QueryProcessor.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/CachedStore.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/storage/xodus/stores/XodusStore.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/auth/basic/LocalAuthenticationRealm.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/execution/ManagedExecution.java
Outdated
Show resolved
Hide resolved
@@ -258,6 +254,9 @@ public synchronized void finish(ExecutionState executionState) { | |||
|
|||
getExecutionManager().updateState(getId(), executionState); | |||
|
|||
// Persist state of this execution | |||
metaStorage.updateExecution(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wird finish nicht immer vom execution Manager aufgerufen, so dass der das schon machen sollte?
}/** | ||
* Cache for execution states. | ||
*/ | ||
private final Cache<ManagedExecutionId, State> executionStates = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hier auch eine ☕🥓?
backend/src/main/java/com/bakdata/conquery/models/query/ManagedQuery.java
Outdated
Show resolved
Hide resolved
@@ -144,6 +145,7 @@ private static Map<String, AbsoluteFormQuery> createTimeStratifiedQueries(Range< | |||
|
|||
@Nullable | |||
@Override | |||
@JsonIgnore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D
@awildturtok Kannst du bitte nochmal drüber schauen, das Laden der Stores ist jetzt konfigurierbar, wo bei der Bucket und CBlock dennoch bei jedem Start direkt geladen werden durch den BucketManager Und ich habe den LoadStorageTask abgeändert, so dass er im ManagerNode, ShardNode und Standalone genutzt werden kann. |
# Conflicts: # backend/src/main/java/com/bakdata/conquery/commands/ManagerNode.java # backend/src/main/java/com/bakdata/conquery/models/forms/managed/ExternalExecution.java
…ersistence