{ "info": { "author": "Alex Chapman", "author_email": "achapman@zope.com", "bugtrack_url": null, "classifiers": [], "description": "zc.monitorcache\n===============\n\nzc.montorcache is a zc.z3monitor plugin that allows one to modify or check\nthe cache size (in objects or bytes) of a running instance.\n\n >>> import zc.monitorcache\n >>> import zope.component\n >>> import zc.ngi.testing\n >>> import zc.monitor\n >>> import zc.monitor.interfaces\n >>> import zc.z3monitor\n >>> import zc.z3monitor.interfaces\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> zope.component.provideUtility(zc.monitorcache.cacheMonitor,\n ... zc.z3monitor.interfaces.IZ3MonitorPlugin, 'cache_size')\n\n >>> connection.test_input('cache_size\\n')\n -> CLOSE\n\nWe have no databases right now. Let's add a few so that we can test.\n\n >>> import ZODB.tests.util\n >>> import ZODB.interfaces\n >>> main = ZODB.tests.util.DB()\n >>> zope.component.provideUtility(main, ZODB.interfaces.IDatabase)\n >>> test = ZODB.tests.util.DB()\n >>> zope.component.provideUtility(\n ... test, ZODB.interfaces.IDatabase, 'test')\n\nNow we should get information on each of the database's cache sizes\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size\\n')\n DB cache sizes for main\n Max objects: 400\n Max object size bytes: 0MB\n DB cache sizes for test\n Max objects: 400\n Max object size bytes: 0MB\n -> CLOSE\n\nWe can request information about a specific db as well\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size -\\n')\n DB cache sizes for main\n Max objects: 400\n Max object size bytes: 0MB\n -> CLOSE\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size test\\n')\n DB cache sizes for test\n Max objects: 400\n Max object size bytes: 0MB\n -> CLOSE\n\nWe can also modify cache sizes for a specific db\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size test 300\\n')\n Set max objects to 300\n -> CLOSE\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size test 10MB\\n')\n Set max object size bytes to 10MB\n -> CLOSE\n\n >>> connection = zc.ngi.testing.TextConnection()\n >>> server = zc.monitor.Server(connection)\n\n >>> connection.test_input('cache_size test\\n')\n DB cache sizes for test\n Max objects: 300\n Max object size bytes: 10MB\n -> CLOSE", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "zc.monitorcache", "package_url": "https://pypi.org/project/zc.monitorcache/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zc.monitorcache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/zc.monitorcache/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "zc.monitor plugin to modify cache sizes", "version": "0.1.0" }, "last_serial": 802183, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bad3a3eb5db5bf410fcc56c48365fc07", "sha256": "09c6daaf74379d817317e37c3a8e849f614ef7decd5a40cbe978484cf22258e6" }, "downloads": -1, "filename": "zc.monitorcache-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bad3a3eb5db5bf410fcc56c48365fc07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3021, "upload_time": "2011-01-03T19:57:41", "url": "https://files.pythonhosted.org/packages/5e/47/7243e382c6a961ac67dd4d44415a86d226a325c1bef54d2dfc4d93d5692e/zc.monitorcache-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bad3a3eb5db5bf410fcc56c48365fc07", "sha256": "09c6daaf74379d817317e37c3a8e849f614ef7decd5a40cbe978484cf22258e6" }, "downloads": -1, "filename": "zc.monitorcache-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bad3a3eb5db5bf410fcc56c48365fc07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3021, "upload_time": "2011-01-03T19:57:41", "url": "https://files.pythonhosted.org/packages/5e/47/7243e382c6a961ac67dd4d44415a86d226a325c1bef54d2dfc4d93d5692e/zc.monitorcache-0.1.0.tar.gz" } ] }