summaryrefslogtreecommitdiff
path: root/python/londiste.py
AgeCommit message (Collapse)Author
2013-04-17londiste add: --skip-non-existing optionMarko Kreen
2013-03-06python: text fixesmartinko
2013-02-13noisemartinko
2013-02-12londiste: added --count-only to compare commandmartinko
For quickly checking whether tables have same number of rows, without comparing tables' contents (data).
2012-12-17New change-handler command which can be used for changing table_attrs ↵Petr Jelinek
(python handlers) for a given table.
2012-11-26Londiste: node-status command for local nodeSasha Aliashkevich
2012-11-26londiste resurrect: Get dead root back into cascadeMarko Kreen
In some cases the 'takeover --dead-root' will be used although actual data on node is fine. Eg. network downtime, lost power. It would be good to have a way to bring it back to cascade without need for full rebuild. This command sync queue contents and re-subscribes node. Any events found on old root that are not spread to rest of cascade are dumped and deleted. No actual table changes are made, thus there must be external mechanism to avoid data conflicts.
2012-10-16Allow overrided options with --set to show up in --ini outputMarko Kreen
2012-10-09Londiste compare and repair fixesAsko Oja
Deprecated Londiste command line parameter --copy-condition. Londiste handler part.py must be used instead as it leaves configuration in maintainable state. Fixed Londiste compare and repair for one to many and many to one repliaction use cases. Now filtering condition is applied on both ends and datasets compared should be the same. Cleaned up database splitting howto.
2012-07-13londiste: --find-copy-node switch for add-tableMarko Kreen
This will find node where tables are available for copy by walking upwards to root.
2012-07-05londiste: Wait commands for londisteMarko Kreen
add-table --wait-sync Don't return until all pending tables are synced wait-sync Wait until all pending tables are synced. wait-root Wait until root's next tick has appeared locally. wait-provider Wait until provider's next tick has appeared locally.
2012-05-17londiste copy: copy table from another nodeMarko Kreen
add-table: --copy-node=NODENAME, store it into table_attrs copy: take node name from table_attrs
2012-01-31--sync-watermark: limit watermark to specific nodesMarko Kreen
This will allow specified nodes to sync global watermark with each other, without sending it upwards. This isolates root node from lag on downstream nodes.
2011-12-09londiste repair: add --apply flagMarko Kreen
this will auto-apply fixes, instead writing them out.
2011-11-18londiste: remove 'replay' alias for 'worker'Marko Kreen
2011-10-27londiste: support table renamingMarko Kreen
- add .dest_table field to londiste.table_info - use it for mapping merged tables on leaf - make handlers use it for sql generaion - fkey-related functions keep using real table name
2011-09-21londiste x.ini show-handlers: info about handlersMarko Kreen
2011-09-16parallel copy process limitEgon Valdmees
added max-parallel-copy londiste argument to specify max number of parallel copy processes
2011-08-07no-merge argumentEgon Valdmees
when using it table is not merged from source queues
2011-07-04CascadeAdmin: node-info commandMarko Kreen
Shows detailed info about local node. Currently the info needs to be gathered from different places, which is annoying.
2011-04-15OCM-1524: merge_all switch for non-queue merge leafEgon Valdmees
2011-02-11londiste; drop chained handler, use single handler per tableMarko Kreen
Original idea was to let admins cascade different handlers, but that seems too complicated. Instead let programmer use subclassing to create handlers with required functionality.
2011-01-24londiste: change behaviour of --create* flagsMarko Kreen
--create now does minimal pkey-only structure --create-full does maximal structure --create-only is dropped as too complex
2010-12-02londiste: --no-triggers argMarko Kreen
2010-11-26londiste: trigger flags to control trigger creationMarko Kreen
2010-09-17londiste: helpstr reorg, add --reset and --rewindMarko Kreen
2010-08-30Pluggable per-table handlers for event processing.Marko Kreen
1. Make handler modules known for Londiste: [londiste3] handler_modules = londiste.bublin, some_other.module Modules are imported and classes found in __londiste_handlers__ module variable are registered. 2. Generic table setup: londiste3 cf.ini add-table foo --handler='handler1' --handler='handler2(arg1, arg2)' Londiste standard handler is default and always appended to custom plugins.
2010-05-07londiste add-table: --trigger-arg switch to set custom paramsMarko Kreen
2010-04-27Require [londiste3] in londiste config.Marko Kreen
2009-12-04fix londiste importMarko Kreen
2009-11-03londiste: copy expression supportMarko Kreen
2009-09-21DBScript: Simplify looping and docstring handlingMarko Kreen
- looping: remove .do_single_loop and .looping variables, let only .loop_delay control looping. If loop_delay is missing from confing or 0, then instead sleep, the script will exit. - docstr: print docstring fragments recursively, so each class needs to only document its own parameters. - londiste.py: use Replicator class to print default config as it has proper class inheritance.
2009-06-07pkgloader module to be able to coexist with 2.xMarko Kreen
Use scheme that pygtk uses to support parallel installations: import pkgloader pkgloader.require('skytools', '3.0') import skytools This will allow keeping old module installed by default and new version is used only by request.
2009-06-01python scripts: Move template config to docstring.Asko Oja
* Template config is now in docstring to make to more easy to keep up-to-date. * dbscript: --ini option to show template config.
2009-06-01cascade: more takeover workMarko Kreen
2009-06-01cascade: takeoverMarko Kreen
Instead of switchover/failover commands have 'takeover' command, to be launched from new node.
2009-04-24Support for drop-node.Martin Pihlak
2009-03-05- bring londiste.ini up to dateMartin Pihlak
- bring londiste help message more up to date - add --help hint for DBScript start error msg - bump pgq version to 3.0devel
2009-02-13python/londiste rewrite for cascadingMarko Kreen
New features: - Cascading - 'execute' command for running SQL scripts on nodes - Parallel COPY - Partition merge - Sequences are pushed from root - Rename 'add' command to 'add-table' - --create switch to add-seq / add-table also drop the never-implemented file-based transport classes.
2008-04-30cascading work:Marko Kreen
- let AdminScript detect number of args by introspection - track event_id_seq downstream - on rename update subscribers too - slightly more fleshed out switchover
2008-04-25pgq_set: pause/resume/change-provider/rename-node work nowMarko Kreen
2008-04-22more pgq_set/londiste cleanupMarko Kreen
2008-04-17more londiste workMarko Kreen
- parallel copy - dont error out in 'copy' when columns differ - its add-table problem - test big cascade with lot of tables
2008-04-15more setconsumer/londiste work.Marko Kreen
simple init/event processing/copy seems to work.
2008-04-04more admin workMarko Kreen
2008-04-04new londiste wrapperMarko Kreen
2007-08-23document add-seq, remove-seq, allow --allMarko Kreen
2007-08-11docstring related cleanupMarko Kreen
2007-07-31remove a lost todo list in .py fileMarko Kreen
2007-07-31londiste: new --all switch for provider/subscriber add/removeMarko Kreen
provider add --all adds all tables that exist in db, otherwise works on registered tables By Hans-Juergen Schoenig, plus some cleanup from me