fluency icon indicating copy to clipboard operation
fluency copied to clipboard

Need a way to configure fileBackupPrefix of Buffer.Config

Open lawrenceloo opened this issue 2 years ago • 3 comments

Hi there, I am now using Fluency in multiple applications that runs in a same server, that is, we have multiple fluency instances run in same server . In order to ease the file resources maintenance of the system, we configure the fileBackupDir to a same system folder.

For example, we have fluency instance A and B run in server 1 and fileBackupDir is C:\backup. During the testing, if we shutdown both instance A and B, both backup file will be saved in C:\backup for both instance A and B. If we start fluency instance A only afterward, we find out that fluency A will read all backup files including instance's B file and flush. However we only want to flush instance A's backup if we start instance A only.

Is it possible to add a parameter fileBackupPrefix inside FluencyBuilder and pass in this property to Buffer.Config? So that we can have different backup file names for different fluency instances. Thanks!

lawrenceloo avatar Apr 11 '22 01:04 lawrenceloo

Why don't you set fileBackupDir for instance A to C:\backup\A so that backup files for instance A and B won't be mixed?

komamitsu avatar Sep 17 '22 13:09 komamitsu

Hi @komamitsu there are two reasons:

  1. We have multiple instances, more than 5 in single server, if we define multiple backup folders, we need to have 5+ deployment packages (with different config files), that's more difficult to manage.
  2. So we want to centralize the backup file storage in 1 single folder, this is more easy to maintain (backup/restore/housekeep).

Thanks for your help!

lawrenceloo avatar Sep 29 '22 03:09 lawrenceloo

I still don't get the point. It sounds you still need to maintain 5+ different config files for fileBackupPrefix. I don't think it's better than using fileBackupDir. Also, putting different applications' backup files in a single directory isn't good practice, I think.

komamitsu avatar Sep 30 '22 06:09 komamitsu