Shared-nothing persistence can be demonstrated using the ASOperations example. With shared-nothing persistence, each seeder in the space stores its space entries locally on disk.
Using ASOperations for shared-nothing persistence, you will be able to see how data is recovered from disk. If all seeders in a space go down, data recovery is initiated using as-admin after the seeders are brought back up.
Where data_store_path defaults to your user home directory. Use the
-data_store command line option to change the default
data_store_path location.
The following examples show how to invoke ASOperations for shared-nothing persistence.
When using ASOperations for shared-nothing persistence, you must start
ASOperations as a seeder so that data will be stored on the node running
ASOperations. The basic space definition is used, but the persistence type of the space is set to
shared-nothing. To identify this slightly different space,
ASOperations uses a default space name of
“shared_nothing_persisted
” when it detects that shared-nothing persistence has been specified. This is done to prevent conflicts with other examples which may already be running and using the default space definition.
The following example shows the command line options that you can use when starting ASOperations for shared-nothing persistence to have it join the security domain
exdomain:
These command line options start ASOperations using the default metaspace named
ms and allow it to connect to a security domain controller that has been started using the example security policy file
example_policy.txt.
When you use ASOperations to put data into the space, you will see the following additional prompt:
The value you enter at this prompt is stored into a field named secure_value, which is defined as a string. Any string value that you enter in response to this prompt is encrypted when it is stored in the space and when it is persisted.
See the section Data Encryption in Chapter 4., “Implementing ActiveSpaces Security” for information on encrypting data fields.