Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to invalidate config on cluster mode #51

Open
mustofa-id opened this issue Sep 18, 2023 · 1 comment
Open

Provide a way to invalidate config on cluster mode #51

mustofa-id opened this issue Sep 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mustofa-id
Copy link
Member

mustofa-id commented Sep 18, 2023

Saat menjalankan server Node dengan mode cluster, hanya cluster yang menjalankan invalidateConfig() yang akan menerapkan perubahan konfigurasi sementara cluster lain tidak mengetahui perubahan tersebut.

Proposed solution

  • Expose boolean flag untuk menandai bahwa konfigurasi perlu diperbarui dan biarkan user menentukan nilainya.
  • Gunakan model versi konfigurasi yang dinaikan saat terjadi perubahan
@mustofa-id mustofa-id added the enhancement New feature or request label Sep 18, 2023
@ssec-dev
Copy link
Contributor

Ini terjadi karena user initialize instance-nya sebagai global variable seperti yang dicontohkan pada Readme.
Menurut saya, ini bisa diatasi di sisi user dengan event yang ada di module node:cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants