Tenants get unloaded after 30mins of inactivity. In that case, tenants get
unloaded and re-loaded.

You can configure that through carbon.xml. You can either increase the
tenant idle time of the default tenant lazy loading policy, or you can
switch to tenant eager loading. See Tenant/LoadingPolicy under carbon.xml.

The subsequent requests wait until the tenant gets loaded, and they also
should get served fine. Are you able to correlate the API call failing and
the userstore deploying?
One way to do that is by comparing the time of the userstore deployment log
vs. the http access logs around the same time.


On Mon, Apr 3, 2017 at 1:24 PM, <[email protected]> wrote:

> Hi,
> i've tested to change the DeploymentUpdateInterval in a test
> environment to 86400, so one day. But the line
> "User Store Configuration Deployer initiated." still appears more than
> once a day. I think the unloading may be the problem, like Omindu said.
> What happens if the tenant was unloaded and the first request starts the
> redeployment and during that a second request comes in? Could that lead to
> this error?
> How long is the idle time before unloading and can it be configured?
> It's kind of hard to test cause the redeployment takes less than a second.
>
> Regards,
> regAW
> *Gesendet:* Dienstag, 28. März 2017 um 21:13 Uhr
> *Von:* "Omindu Rathnaweera" <[email protected]>
> *An:* "KasunG Gajasinghe" <[email protected]>
> *Cc:* [email protected], DEV <[email protected]>
> *Betreff:* Re: [Dev] API Calls fail while UserStoreConfigurationDeployer
> is running
> @KasunG The deployers can run during tenant loading, correct? Say the
> tenant got unloaded after the idle time, the next request to that tenant's
> resource will re deploy the tenant's user stores, services etc. In that
> case, will changing deployment update interval be effective ?
>
> Regards,
> Omindu
>
> On Tue, Mar 28, 2017 at 4:06 PM, KasunG Gajasinghe <[email protected]>
> wrote:
>>
>>
>> You can reduce the deployment update interval via carbon.xml. By default,
>> it is 15mins. Search for DeploymentUpdateInterval. You can increase this.
>>
>> That being said, the deployers won't be called unless you modify
>> userstore.
>>
>> On Mon, Mar 27, 2017 at 2:32 PM, <[email protected]> wrote:
>>
>>> Hi,
>>> i have a problem with my WSO2-am. The UserStoreConfigurationDeployer is
>>> running up to 20 times per day. During that time alle request to the api
>>> return a 500 http error. The backend is not called.
>>> I created a question on stackoverflow ( http://stackoverflow.com/
>>> questions/42859483/the-service-cannot-be-found-for-
>>> the-endpoint-reference-while-user-store-configur ) but no answers so
>>> far.
>>> Can someone have a look at this or at least can confirm that it will not
>>> happen under 2.1?
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> *Kasun Gajasinghe*
>> Associate Technical Lead, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>> phone: +1 650-745-4499, 77 678 0813
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Omindu Rathnaweera
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211 <077%20119%207211>
>



-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to