FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Multiple nodes sharing IP address?

    Scheduled Pinned Locked Moved
    Q&A
    2
    14
    4.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      davidmw
      last edited by

      On the About screen we have indications that all our nodes are sharing the same IP address. The nodes seem to be restarting at odd times too, unrelated to system load. The start times shown here are Saturday evening and we had zero login activity until my 9:30pm login to generate the screen capture.

      Screen Shot 2020-11-07 at 9.31.29 pm.png

      Is any of this expected?

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        That seems weird to me.

        Are these running in k8s or on separate servers?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • D
          davidmw
          last edited by

          Ugh, somehow I wasn't watching my own thread.

          Yes this is deployed on Kubernetes.

          1 Reply Last reply Reply Quote 0
          • D
            davidmw
            last edited by

            @dan do you have any ideas on next step to help figure out what is happening here?

            1 Reply Last reply Reply Quote 0
            • danD
              dan
              last edited by

              @davidmw Hmmm.

              What is the value of fusionauth-app.url/FUSIONAUTH_APP_URL for these nodes and how is it set (env var, shared config.properties file)? I'm guessing since you are running in docker, you are setting it, if at all, via env vars.

              From the configuration reference, this is:

              The FusionAuth App URL that is used to communicate with other FusionAuth nodes. This value is defaulted if not specified to use a localhost address or a site local if available. Unless you have multiple FusionAuth nodes the generated value should always work. You may need to manually specify this value if you have multiple FusionAuth nodes and the only way the nodes can communicate is on a public network.

              https://fusionauth.io/docs/v1/tech/reference/configuration/

              How is your network configuration set up? How can the nodes reach each other (not super familiar with k8s).

              --
              FusionAuth - Auth for devs, built by devs.
              https://fusionauth.io

              V 1 Reply Last reply Reply Quote 0
              • V
                venkata.dorisala @dan
                last edited by venkata.dorisala

                @dan said in Multiple nodes sharing IP address?:

                FUSIONAUTH_APP_URL

                @dan
                We have configured fusion to run with 2 replicas. So it spins up 2 pods all the times in 2 different nodes.
                We are setting FUSIONAUTH_APP_URL as http://POD_IP:9011 . So it's different for both pods where fusionauth is running. Attached screenshot of both pods env variable.
                169cff25-9e3f-41c0-bab4-8b7b339d4be6-image.png

                We don't have any security policies so within the cluster all nodes can access each other.

                We are still seeing the same IP address for both nodes in fusion UI as shown in screenshot provided by @davidmw

                Please let me know if you need anything else from us to troubleshoot this issue further.

                1 Reply Last reply Reply Quote 0
                • danD
                  dan
                  last edited by

                  @venkata-dorisala

                  I'm looking through some things and it appears that when a node is added, there's a log message.

                  Node [...] added with address [...]
                  

                  That should be in the output of your fusionauth instances at startup. Can you see these lines? What values do they have?

                  Thanks!

                  --
                  FusionAuth - Auth for devs, built by devs.
                  https://fusionauth.io

                  1 Reply Last reply Reply Quote 0
                  • V
                    venkata.dorisala
                    last edited by

                    Hello @dan

                    Yes i do see those statements in the logs. Below are the statements for 2 nodes. They do have different Node Id and ip address.

                    io.fusionauth.api.service.system.NodeService - Node [c5ae863b-1e86-4858-8516-3dfc93866c04] added with address [http://10.1.0.39:9011]

                    io.fusionauth.api.service.system.NodeService - Node [4af1d532-79a7-4a5c-b45a-4e1e7338a1fb] added with address [http://10.1.0.53:9011]

                    1 Reply Last reply Reply Quote 0
                    • danD
                      dan
                      last edited by

                      Thanks!

                      This looks like a UI bug. I don't believe this is related to the instability mentioned in the first post in this thread.

                      Here's the bug I filed: https://github.com/FusionAuth/fusionauth-issues/issues/1030

                      Thanks for answering my questions!

                      --
                      FusionAuth - Auth for devs, built by devs.
                      https://fusionauth.io

                      1 Reply Last reply Reply Quote 0
                      • D
                        davidmw
                        last edited by

                        Okay so if we refocus on the apparent instability of the nodes - how can we check on node startup times to see if the data reported in the About UI is accurate?

                        danD 1 Reply Last reply Reply Quote 0
                        • danD
                          dan @davidmw
                          last edited by dan

                          @davidmw said in Multiple nodes sharing IP address?:

                          Okay so if we refocus on the apparent instability of the nodes - how can we check on node startup times to see if the data reported in the About UI is accurate?

                          I'm not sure how to answer that question, probably because I don't know your environment very well.

                          Doesn't k8s record the node startup time when you deploy something? Or can you manually restart a node at a known time and see how that compares to what fusionauth reports?

                          What am I missing?

                          By the way, if you are running in FusionAuth in production, we strongly encourage you to get a support contract 🙂 . Having one allows access to the engineering team via opening support tickets. https://fusionauth.io/pricing/ Chasing this kind of bug down is something they're quite good at.

                          --
                          FusionAuth - Auth for devs, built by devs.
                          https://fusionauth.io

                          1 Reply Last reply Reply Quote 0
                          • V
                            venkata.dorisala
                            last edited by

                            @dan

                            We do see node start times in the logs. But can't see the reason for the node restart. Everyday fusion nodes(pods) are being restarted.

                            Trying to understand the highlighted portion from the logs. Due to some reason NodeService is removing node. The node was just started and within a minute it was removed. So it may not be due to health of the node.

                            6d6e3211-deff-4a52-b6b1-d09926d92d93-image.png

                            Can't find much information about setting up fusionauth multi-node cluster. Can you share the links for such documentation.

                            1 Reply Last reply Reply Quote 0
                            • danD
                              dan
                              last edited by

                              I think that you got some answers over in github: https://github.com/FusionAuth/fusionauth-issues/issues/373#issuecomment-749759257

                              I don't have any timelines for multinode documentation; in our experience it "just works". But I'll put it on the list :).

                              --
                              FusionAuth - Auth for devs, built by devs.
                              https://fusionauth.io

                              1 Reply Last reply Reply Quote 0
                              • danD
                                dan
                                last edited by

                                I wrote a guide for running fusionauth in a clustered/multi node setup: https://fusionauth.io/docs/v1/tech/installation-guide/cluster/

                                The bug about the ip addresses being the same (which was only a display bug, not a functionality bug) was also addressed in 1.23.0: https://fusionauth.io/docs/v1/tech/release-notes/#version-1-23-0

                                --
                                FusionAuth - Auth for devs, built by devs.
                                https://fusionauth.io

                                V 1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post