How do I enable Fire-Forget feature?


#1

How do I enable Fire-Forget feature?


#2

For every write before responding to the client, citrusleaf will wait for the prole reply (replica write) . You can enable the fire-forget feature, which will return to the client as soon as the master write is successful.

clinfo -v "set-config:context=service;respond-client-on-master-completion=true" -h [host ip]


#3

We now have 2 different methods for handling fire and forget:

For every write before responding to the client, the Aerospike server will wait for the prole reply (replica write). You can enable the fire-and-forget feature, which will return to the client as soon as the master write is successful. There are 2 different forms of this that vary depending on how the prole reply (which is done asynchronously) is handled.

Choose the method appropriate for you:

respond-client-on-master-completion - This mode tells the server to retry the prole write if the first attempt fails.

set-config:context=service;respond-client-on-master-completion=true

NOTE - respond-client-on-master-completion has been deprecated on Aerospike version 3.3.26 and above.

fire-and forget - This mode tells the server to try the prole write only once. If it fails, the database will only have a single copy of that record. This should rectify itself with the next write.

set-config:context=service;replication-fire-and-forget=true


#4

replication-fire-and-forget setting has been deprecated as of version 3.9.0 of the server. Please use write-commit-level-override master=master

asinfo -v 'set-config:context=namespace;id=<NAMESPACE>;write-commit-level-override=master'

http://www.aerospike.com/docs/reference/configuration#write-commit-level-override