Skip to content

Commit

Permalink
Merge pull request #6 from UlfBj/master
Browse files Browse the repository at this point in the history
Tutorial datastore update
  • Loading branch information
UlfBj authored Mar 14, 2024
2 parents 4f69b40 + 5be8c29 commit 55aafb3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions tutorial/content/datastore/memcached/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "VISSR Memcached"
---

## Memcached state storage
Quoting from the [Memcached](https://memcached.org/) site, "Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects)".
The key is in this context the path, and the value is a JSON string containing the value and the associated time stamp.

The memcached store is started as a daemon, which is not automatically terminated when the server terminates.
The commands below can be used to manually terminate the memcached daemon.

$ ps -A | grep "memcached"

then remove it with the command

$ kill pid

where pid comes from the result of the first command.

Communication with the Memcached daemon is for security reasons configured to use Unix domain sockets. This requires that the socket file, and the directory it is stored in exist.
If not then create it with the commands

$ makedir path-to-socket-file-directory

$ touch socket-file-name
2 changes: 1 addition & 1 deletion tutorial/content/datastore/redis/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Instead it is necessary to configure and launch the daemon.
This is already configured in the redis/redisNative.conf that is used as input in the bash command in the server/viss2server/redisNativeInit.sh file that is called at server startup.

To avoid multiple daemons being started, the server checks if the daemon is already running before starting an instance of it.
If there is a need to stop a running daemon, first find the daemon pid with the command
If there is a need to terminate a running daemon, first find the daemon pid with the command

$ ps -A | grep "redis"

Expand Down

0 comments on commit 55aafb3

Please sign in to comment.