-
Hello, I am currently facing issues with horizontal scaling in the cloud. I have a pod A that has the storage injected and also the application logic. This pod reads and writes data, which works fine. Now I start a second pod B (same service and same storage but only in read mode). Upon statup it loads the current data from the actual storage files. Now I have 2 pods running with the same storage. When the podA creates a new object I want to notify pod B about it, so it can update it's object graph. I send a message to pod B to reload the data from the storage with the Reloader so it also holds the newly created object. I use the following code to reload the new object in pod B with:
where the objectId is the Id given by This is where the problems begin. The pod B has no information about the new object and is also not able to load it, since it's ID is not present in the object graph, which ends with an Exception. There is no actual lookup in the storage file performed, only the RAM is checked. This fact basically means I can not scale my pod horizontally since they will never be able to load the objects the other pod created even though they use the same file share. Kind regards and thank you for any help in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, It is NOT supported to access the storage data from more than one EmbeddedStorageManager instance simultaneously. As the instances don’t know about each other they will not recognize changes done to the storage by another instance. Starting a second instance may even cause corrupted data files. |
Beta Was this translation helpful? Give feedback.
Hello,
It is NOT supported to access the storage data from more than one EmbeddedStorageManager instance simultaneously. As the instances don’t know about each other they will not recognize changes done to the storage by another instance. Starting a second instance may even cause corrupted data files.
Any scaling has to be done by the application that exclusively owns the storage.