[Grok-dev] Exporting Apps

Sebastian Ware sebastian at urbantalk.se
Sat Jan 24 04:27:27 EST 2009


Yes. The snag being that one needs multiple Grok instances running and  
with many instances that till eventually cause swapping. So it would  
probably benefit from running on a solid state disk.

I use Nginx in front of several instances of Grok and it is very  
efficient.

Mvh Sebastian


24 jan 2009 kl. 00.25 skrev Tim Cook:

> Thanks Sebastian,
>
> Hmmmm, it might be more useful to create a top level dir with a script
> that starts all three apps on different ports.  Then if they need to  
> be
> moved it would seem simpler?
>
> --Tim
>
>
>
> On Sat, 2009-01-24 at 00:21 +0100, Sebastian Ware wrote:
>> Currently there is no simple export feature. You have to write your
>> export and import code yourself. It is a bit tricky because you have
>> to serialise relations, handle annotations etc. you can't just pickle
>> the root object because you get circular references through the
>> context.__parent__ attribute. You also want the registration  
>> machinery
>> to kick in properly, so you probably want to recreate your objects  
>> and
>> manipulate them in a similar way to how they were originally created.
>> When you recreate the object structure you also have an issue with  
>> the
>> fact that containers aren't ready to accept content until somewhere
>> around the ObjectCreation-event. You have to update the containers in
>> a "two-way commit".
>>
>> That said, it can be done, and it is bloody useful.
>>
>> Mvh Sebastian
>>
>>
>> 23 jan 2009 kl. 23.09 skrev Tim Cook:
>>
>>> If I have three Grok applications running together on one site and  
>>> at
>>> some point in the future I decided to split them up over different
>>> servers for performance/security reasons; is that possible?
>>>
>>> Should I may set them up as a grok.site() at the outset?
>>>
>>> Thanks,
>>> Tim
>>>
>>>
>>>
>>>
>>> -- 
>>> Timothy Cook, MSc
>>> Health Informatics Research & Development Services
>>> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
>>> Skype ID == timothy.cook
>>> **************************************************************
>>> *You may get my Public GPG key from  popular keyservers or   *
>>> *from this link http://timothywayne.cook.googlepages.com/home*
>>> **************************************************************
>>> _______________________________________________
>>> Grok-dev mailing list
>>> Grok-dev at zope.org
>>> http://mail.zope.org/mailman/listinfo/grok-dev
>>
> -- 
> Timothy Cook, MSc
> Health Informatics Research & Development Services
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> Skype ID == timothy.cook
> **************************************************************
> *You may get my Public GPG key from  popular keyservers or   *
> *from this link http://timothywayne.cook.googlepages.com/home*
> **************************************************************



More information about the Grok-dev mailing list