Persistence Policy and Implementation

For both types of persistence, you can specify that the persistence is maintained synchronously or asynchronously.

Shared-Nothing Persistence

With shared-nothing persistence, each node that joins a space as a seeder maintains a copy of the space data on disk.

Persisted Data Store

When you configure shared-nothing persistence, you must use a unique name for each member joining the spaces, and you must specify an existing directory path for which ActiveSpaces has read and write access.

You can specify the directory path for data storage as follows:

  • Through calls to the API operations.
  • For as-agents, by using the command line arguments for as-agent.
  • Through an environment variable.

The directory you specify is used as the root path under which ActiveSpaces creates its own subdirectory structure, using the format metaspace/space/member.

ActiveSpaces creates and manages persistence files automatically. You do not have to provide a filename for the stored data—the data store directory is used as the location to create and use the file.

For detailed information on implementing shared-nothing persistence, see Persistence.

For detailed information on implementing shared-all persistence, see Persistence.