[Freeipa-devel] [PATCH 0108] schema: Decrease schema TTL to one hour

Martin Basti mbasti at redhat.com
Fri Jul 1 07:23:55 UTC 2016



On 01.07.2016 09:08, Petr Spacek wrote:
> On 1.7.2016 07:58, David Kupka wrote:
>> https://fedorahosted.org/freeipa/ticket/4739
>> -- 
>> David Kupka
>>
>> freeipa-dkupka-0108.0-schema-Decrease-schema-TTL-to-one-hour.patch
>>
>>
>>  From 796fd4291dd17128e7bdfecf2d14ae7b151987f5 Mon Sep 17 00:00:00 2001
>> From: David Kupka <dkupka at redhat.com>
>> Date: Fri, 1 Jul 2016 07:34:43 +0200
>> Subject: [PATCH] schema: Decrease schema TTL to one hour
>>
>> Since checking schema is relatively cheap operation (one round-trip with
>> almost no data) we can do it offten to ensure schema will fetched by
>> client ASAP after it was updated on server.
>>
>> https://fedorahosted.org/freeipa/ticket/4739
>> ---
>>   ipaserver/plugins/schema.py | 5 ++++-
>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/ipaserver/plugins/schema.py b/ipaserver/plugins/schema.py
>> index c7aa5f36c37d39a5131ca8ad915cb6e61bb748ec..a82b357899a483fd3b3dc9f7407bd26a4c03aada 100644
>> --- a/ipaserver/plugins/schema.py
>> +++ b/ipaserver/plugins/schema.py
>> @@ -21,7 +21,10 @@ from ipapython.version import API_VERSION
>>   
>>   # Schema TTL sent to clients in response to schema call.
>>   # Number of seconds before client should check for schema update.
>> -SCHEMA_TTL = 7*24*3600  # default: 7 days
>> +# This should be long enough to not slow down regular work or skripts
>> +# but also short enough to ensure schema will be retvieved soon after
>> +# it was updated
>> +SCHEMA_TTL = 3600  # default: 1 hour
>>   
>>   __doc__ = _("""
>>   API Schema
>> -- 2.7.4
> ACK
>
Pushed to master: e5635f7ef423c7b203004a0cbf625360d351a78e




More information about the Freeipa-devel mailing list