-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
How do you move configuration from cluster A to cluster B ? #10714
Comments
Hi, @fabltd Do you know which version of EMQX you are currently using? The current version (5.0.x) does not have a configuration migration feature. If you need to migrate the configuration in this version, you will need to do it manually. For example, manually merge Updates: Added a Feature Request label. We will try delivering this kind of functionality in v5.1.0 |
Hi Yes using V5.0.25. I can see that the data is not persistant its using an empty dir. I have implmented the following config below to implment persistance. The PVC is created and I see 3 x disks. However EMQX won't start its in a continued CrashLoopBackoff due to the following error:
Any idea why it cannot write?
|
Hi @fabltd Please check this: emqx/emqx-operator#716 |
@Rory-Z - Thanks that fixed - why is it not in the docs? |
Hi @fabltd This is in document: https://docs.emqx.com/en/emqx-operator/latest/deployment/on-aws-eks.html#quickly-deploy-an-emqx-cluster Or please let me know where is document for you read, maybe we missed |
Yes its not mentioned in the link above or here: https://github.com/emqx/emqx-operator/blob/main/docs/en_US/tasks/configure-emqx-persistence.md It should be added to this doc? |
You can create a new PR for emqx/emqx-operator.git main-2.1 branch. |
@Rory-Z not sure if you can help with the orginal ask: In my dev cluster the config appears to all be in a file called cluster-override.conf. I have copied this to the prod cluster but and restarted the pods but none of my dev rules are showing? Any idea. |
Copy |
you should stop all nodes, then copy cluster-override.conf, |
Maybe can copy |
I was unable to get the cluster-overwrite.conf to work. I understand later releases of V5 have moved to the file
As a test I built a test cluster and configured some options. Following this I built a new cluster and migragted the .hocon file. However this did not work as expected the new cluster gives the following error:
|
The above error results in the dashboard being unresponsive and I am unable to make changes to the rules engine. @HJianBo HJianBo
This does not work. Each time the crash occours. Steps to reproduce Copy config emqx-core-0:data/configs No other files are copied. All pods restarted: kubectl -n mqtt rollout restart statefulset emqx-core Crash seen in dashboard when going to Flows view. |
@Rory-Z Any idea? |
I have no idea, I think the |
See stack trace
It seems get metrics failed on the node |
Can you check if there are any error logs when each EMQX node starts up? And query through this interface List All Rules on each node to see if the rules you specified have been correctly created? |
I just add the config as was suggested and this happens. It crashes the rules engine. |
Could you please share the .hocon configuration if it's possible |
Hi
Can I email it to you?
On Thu, 18 May 2023 at 08:54, JianBo He ***@***.***> wrote:
Could you please share the .hocon configuration if it's possible
—
Reply to this email directly, view it on GitHub
<#10714 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGCGRRS5DCJIXH3O3OYRN3XGXIU7ANCNFSM6AAAAAAYDL2HZE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
|
Yes, of course, heeejianbo@gmail.com |
Emailed. - Let me know if you would like access to the cluster is running in Google Cloud. |
Thanks for fixing - How do I update to the fixed version? |
Looks like after setting up from scratch there is still an issue with metrics. Both my - replicant nodes have crashed.
Any ideas. This all worked in Dev but crashes in prod. |
This error is shown in the dashboard
This is the IP if the failed replicant pod. Restarting all core pods and then replicate seems to have the replicate running again. |
I am still having issues. I built a new instlall from scratch. It worked for a few days now its showing the following error again:
|
@HJianBo - I have updated to 5.0.26 I note the releases say the metrics issue should be fixed but its still occouring |
Fixes https://emqx.atlassian.net/browse/EMQX-10073 Fixes emqx#10714 (comment) Similar issue to emqx#10743, but on the rule engine API.
Hi
I have EMQX V5 installed in our dev cluster and would like to migrate the config to the prod cluster.
Whilst I can find the configuration in the pod. I cannot find out where this is stored and shared between the replicas. Its also not documented?
How do you move configuration from cluster A to cluster B ?
Thank you
The text was updated successfully, but these errors were encountered: