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

    Unlimited .data fields

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 5.3k Views
    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.
    • C
      cyrill.lippuner
      last edited by

      Hello,

      This is not a direct bug, but maybe a safety net for other users to not do the same mistake as we did.

      We had a prod environment going down due to fusionauth OOM errors which were cause by a bug on one of our services. There is everything fine with the FusionAuth in general, but the problem was that we filled up the users.data field for each user with too much data due to an error (should only have been a list of some bytes). Therefore, after some months we started to have some occasional OOM errors of FusionAuth, as the 0.5GB RAM were not sufficient anymore to load even a single user (which had a users.data text field of 400MB).

      After cleaning that, everything is back to normal.

      My proposition might be, to put a (maybe configurable) size limit on the *.data fields to prevent such hard to catch runtime errors.

      Feel free to ask back for more info, I just wanted to put this here in case you might wanna consider it 😉

      danD 1 Reply Last reply
      Reply Quote 1
      • danD
        dan @cyrill.lippuner
        last edited by dan

        @cyrill-lippuner Thanks for sharing this info with the community!

        Did you also explore increasing the memory available to FusionAuth? That would be another approach, if someone actually really needed a large amount of data in user.data.

        However, 400MB is a pretty big JSON blob! 🙂

        If you'd like to file a feature request about limiting user.data size, that'd be awesome.

        --
        FusionAuth - Identity Without Constraints
        https://fusionauth.io

        C 1 Reply Last reply
        Reply Quote 0
        • C
          cyrill.lippuner @dan
          last edited by

          @dan Yes I did increase it until 2GB, but then loading a list of 4 users also fails ^^

          So I think it is just not a good idea using FA as a database 😉

          Will look into the feature request.

          danD 1 Reply Last reply
          Reply Quote 1
          • danD
            dan @cyrill.lippuner
            last edited by

            @cyrill-lippuner Thanks for filing the feature request: https://github.com/FusionAuth/fusionauth-issues/issues/1901

            --
            FusionAuth - Identity Without Constraints
            https://fusionauth.io

            1 Reply Last reply
            Reply Quote 0
            • J
              john.laflamme
              last edited by

              @cyrill-lippuner said in Unlimited .data fields:

              Hello,
              This is not a direct bug, but maybe a safety net for other users to not do the same mistake as we did.
              We had a prod environment going down due to fusionauth OOM errors which were cause by a bug on one of our services. There is everything fine with the FusionAuth in general, but the problem was that we filled up the users.data field for each user with too much data due to an error (should only have been a list of some bytes). Therefore, after some months we started to have some occasional OOM errors of FusionAuth, as the 0.5GB RAM were not sufficient anymore to load even a single user (which had a users.data text field of 400MB).
              After cleaning that, everything is back to normal.
              My proposition might be, to put a (maybe configurable) size limit on the *.data fields to prevent such hard to catch runtime errors.
              Feel free to ask back for more info, I just wanted to put this here in case you might wanna consider it

              Implementing a configurable size limit on data fields is indeed a useful safety measure. This limit can help prevent unintended data growth and ensure that the system behaves predictably even when users inadvertently input excessive data.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post