Re: [Zope] How to get modules that are called by external methods reloaded?
On Saturday 20 January 2007 12:00, Andreas Jung wrote: --On 20. Januar 2007 11:55:18 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: That database size isn't too large and will not cause 10 minute startup. Only the index file is read in during startup, not the whole database - unless your index file does not exist or is corrupt. ..which might be the result of an unclean shutdown. Andreas That sounds plausible. We don't do restarts during bussines ours unless we absolutely _have_to_ of course. The restarts I am talking about was before we got Varnish up and running, when the frontpage of http://www.dagligvarehandelen.com would take up to one minute to load, and apache server status would report loads of connections in the reading state. Thanks for your input. Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
--On 20. Januar 2007 11:55:18 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: That database size isn't too large and will not cause 10 minute startup. Only the index file is read in during startup, not the whole database - unless your index file does not exist or is corrupt. ..which might be the result of an unclean shutdown. Andreas pgpiktoGr9mRT.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Jan 2007, at 00:15, Gaute Amundsen wrote: Right now (~24:00), it restarted in about aminute actually, but considering that our DB size is 7030.2M and it contains about 70 virtual hosts, does 10 minutes still seem to long when under heavy load? What do you mean under heavy load? Do you run all kinds of other expensive processes on the same box as the ZEO client? That database size isn't too large and will not cause 10 minute startup. Only the index file is read in during startup, not the whole database - unless your index file does not exist or is corrupt. Then startup can take a very log time. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFsfUWRAx5nvEhZLIRAhbJAJ9Nl6P3xVLoE2AuhUO19WKRfJUrZQCeJSO9 +FVhGFRdAqM9nGv/DCFUSog= =450c -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. Have you tried to go into Edit form of your external method and just hit Save button? This should tell you that External method was updated. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
On Friday 19 January 2007 12:13, Maciej Wisniowski wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. Have you tried to go into Edit form of your external method and just hit Save button? This should tell you that External method was updated. Most definitely. That updates everything in the file in the Extensions folder, but noting that this file imports. Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
I think that when you restart zope, it compiles everything that is in the products directory. So what happens when you compile it for yourself while zope is running ? If you have only one machine, you can setup multiple zope instances to develop and debug on them so that you are not obliged to restart the production instance. Y.Chaouche 2007/1/19, Gaute Amundsen [EMAIL PROTECTED]: On Friday 19 January 2007 12:13, Maciej Wisniowski wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. Have you tried to go into Edit form of your external method and just hit Save button? This should tell you that External method was updated. Most definitely. That updates everything in the file in the Extensions folder, but noting that this file imports. Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Jan 2007, at 14:09, yacine chaouche wrote: I think that when you restart zope, it compiles everything that is in the products directory. So what happens when you compile it for yourself while zope is running ? Sorry, that's just plain wrong. If a PYC file exists for a given PY file and the PY file has not been changed since the PYC file has been created then the module will not be recompiled. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFsOTERAx5nvEhZLIRAkgOAJwN1OdUZydIXoXw2+Hz+yOwEH6ubACfSc8D tX/z6pFyQ8f0QVVd3X0d9N4= =XT9P -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
You are right Jens, but I thought that Gaute wanted to apply some modifications to a module and see the results live, without restarting zope. Y.Chaouche 2007/1/19, Jens Vagelpohl [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Jan 2007, at 14:09, yacine chaouche wrote: I think that when you restart zope, it compiles everything that is in the products directory. So what happens when you compile it for yourself while zope is running ? Sorry, that's just plain wrong. If a PYC file exists for a given PY file and the PY file has not been changed since the PYC file has been created then the module will not be recompiled. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFsOTERAx5nvEhZLIRAkgOAJwN1OdUZydIXoXw2+Hz+yOwEH6ubACfSc8D tX/z6pFyQ8f0QVVd3X0d9N4= =XT9P -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
Gaute Amundsen wrote at 2007-1-19 10:36 +0100: Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. You can use Python's reload builtin to reload them. Be warned however, that you must reload also any module that contains (has imported) functions defined in the reloaded module. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
--On 19. Januar 2007 10:36:04 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. 10 minutes is too long. Even Plone starts on modern hardware in about 30 seconds. Are you using persistent ZEO client caches are checked against the ZEO server during the startup phase? -aj pgpKwO2al4n4C.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
On Friday 19 January 2007 19:45, Dieter Maurer wrote: Gaute Amundsen wrote at 2007-1-19 10:36 +0100: Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. You can use Python's reload builtin to reload them. Be warned however, that you must reload also any module that contains (has imported) functions defined in the reloaded module. Ah.. to late now, but I wil keep that in mind next time :) Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get modules that are called by external methods reloaded?
On Friday 19 January 2007 19:51, Andreas Jung wrote: --On 19. Januar 2007 10:36:04 +0100 Gaute Amundsen [EMAIL PROTECTED] wrote: Subject says it sall. Only way I have found so far is to restart zope, and on a production server, that is not very popular. Takes about 10 minutes on ours.. 10 minutes is too long. Even Plone starts on modern hardware in about 30 seconds. Are you using persistent ZEO client caches are checked against the ZEO server during the startup phase? -aj Hm... We are using the setup right out of the box + apache, with Varnish in front of the most heavily loaded sites. Right now (~24:00), it restarted in about aminute actually, but considering that our DB size is 7030.2M and it contains about 70 virtual hosts, does 10 minutes still seem to long when under heavy load? Gaute ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )