Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-9876

Performance problem with high number of resources with scopes in resource server

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.8.3.Final
    • Fix Version/s: None
    • Component/s: Authorization Services
    • Labels:
      None
    • Environment:

      Any environment, standalone or standalone-ha

    • Story Points:
      1
    • Steps to Reproduce:
      Hide
      • Start Keycloak app-authz-uma-photoz quickstarts project (keycloak-quickstarts/app-authz-uma-photoz)
      • Create 50000 new albums (curl --request POST host/album --header 'Authorization: Bearer token' --data '{"name": "random_album_name"}')
      • Go into keycloak administration > client (photoz-restful-api) > Authorizations > Authorization Scopes
      • Expand one of the scope details (eg. album:delete or album:view)
      • You should wait a few seconds before getting the result (result contains all the 50000 resources).
      Show
      Start Keycloak app-authz-uma-photoz quickstarts project ( keycloak-quickstarts/app-authz-uma-photoz ) Create 50000 new albums (curl --request POST host /album --header 'Authorization: Bearer token ' --data '{"name": " random_album_name "}') Go into keycloak administration > client (photoz-restful-api) > Authorizations > Authorization Scopes Expand one of the scope details (eg. album:delete or album:view) You should wait a few seconds before getting the result (result contains all the 50000 resources).
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      We got high number of resources created in authorization service in the same client ~= 50000+.
      When expanding scope details which is appended to created resources, the request time to get details increases extremely, also this has impact to our users (meanwhile scope details are loading, users are unable to sign in, authorization services do not response, ...).

        Gliffy Diagrams

          Attachments

          1. resources3.JPG
            resources3.JPG
            76 kB
          2. resources2.JPG
            resources2.JPG
            130 kB
          3. resources.JPG
            resources.JPG
            156 kB

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                matija.miheljak Matija Miheljak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: