[keycloak-user] Importing big realms

Buda, Mikolaj mikolaj.buda at contractors.roche.com
Wed Nov 29 06:30:48 EST 2017


I managed to fix the problem by exporting users to separate files each 5000
and then perform a partialImport on imported realm.

On Wed, Nov 29, 2017 at 12:16 PM, Stian Thorgersen <sthorger at redhat.com>
wrote:

> Please don't drop the mailing list
>
> On 29 November 2017 at 11:08, Buda, Mikolaj <mikolaj.buda at contractors.
> roche.com> wrote:
>
>> The problem is, we cannot use this Export/Import functionality as it
>> requires to restart the Keycloak. I managed to build the same json file
>> using many GET requests and now I would like to upload it on another
>> instance without restarting the application.
>>
>> On Wed, Nov 29, 2017 at 11:00 AM, Stian Thorgersen <sthorger at redhat.com>
>> wrote:
>>
>>> How many users and how long time?
>>>
>>> With a large amount of users you should split the user into separate
>>> files, see http://www.keycloak.org/docs/latest/server_admin/index.h
>>> tml#_export_import for more details.
>>>
>>> On 29 November 2017 at 10:31, Buda, Mikolaj <
>>> mikolaj.buda at contractors.roche.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I've just created a tool that prepares a full backup of realm in json
>>>> (the
>>>> same as during export at standalone startup). Sometime it is 60MB of
>>>> data
>>>> (many users). Import process takes a long time. Do you have any ideas
>>>> how
>>>> to speed up this process?
>>>> _______________________________________________
>>>> keycloak-user mailing list
>>>> keycloak-user at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>>>
>>>
>>>
>>
>


More information about the keycloak-user mailing list