close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2110

Table Of Contents

4.2.4.1 In-Memory configuration for Studio

The easiest way is to use the Maven profile in-memory when starting the Studio web app. This will take care of setting all the required system properties accordingly.

Alternatively (or if using the profile is not an option for some reason) you can take care of setting the required properties yourself. You need the following:

elastic.core.persistence=memory
mongodb.models.create-indexes=false
repository.caplist.connect=true
repository.caplist.factory-class-name=com.coremedia.cotopaxi.list.memory.MemoryCapListConnectorFactory

Furthermore, you can configure your Studio server with the following properties so that the in-memory store is read / written from the given file upon application context startup / shutdown. To limit memory usage of the in-memory store, the size per collection map is configured. To be robust against data loss, the in-memory store can be persisted periodically in a given interval.

PropertyDefaultDescription

repository.params[memory.collection.serialization.file]

null

In-memory store persistence file name.

repository.params[memory.collection.size]

5000

Number of in-memory map entries per collection.

repository.params[memory.collection.serialization.interval]

360000

Interval in ms in which the in-memory store is persisted periodically to the configured file. If 0, periodic persistence is disabled.

repository.params[memory.collection.selfclearing.names]

notifications

A comma separated list of collection names, which will be periodically deleted and re-created, when memory.collection.size is reached. Fast growing collections, which do not contain critical data should be configured as self-clearing collections, for example, notifications.

Table 4.5. Studio Configuration Properties for In-Memory Store


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.