1 2013-08-07: Release version 2.68
3 * optimize monitor worker for large installs (Eric Wong <normalperson@yhbt.net>)
5 * allow startup without job_master (and dependent workers) (Eric Wong <normalperson@yhbt.net>)
7 * store: do not disconnect for max_handles while locked (Eric Wong <normalperson@yhbt.net>)
9 * store: do not auto-reconnect while holding a lock (Eric Wong <normalperson@yhbt.net>)
11 * add naive MultipleDevice replication policy (Eric Wong <normalperson@yhbt.net>)
13 * httpfile: log mogstored I/O errors when checksumming (Eric Wong <normalperson@yhbt.net>)
15 * ProcManager: log socketpair errors correctly (Eric Wong <normalperson@yhbt.net>)
17 * fix "drain" handling used by MultipleHosts replpolicy (Eric Wong <normalperson@yhbt.net>)
19 * httpfile: correct timeouts for sidechannel digest (Eric Wong <normalperson@yhbt.net>)
21 * httpfile: correct FILE_MISSING check in digest_mgmt (Eric Wong <normalperson@yhbt.net>)
23 * mogstored: avoid bareword on IO::AIO w/o fadvise (Eric Wong <normalperson@yhbt.net>)
25 * ProcManager: only log times_out_of_qworkers for new queries (Eric Wong <normalperson@yhbt.net>)
27 * Don't emit warnings if we're lacking the space free of a device. If we don't find space on devices with known space free, try the unknowns. (Dave Lambley <davel@state51.co.uk>)
29 * list_keys: escape in Store, allow [%\\] as prefix (Eric Wong <normalperson@yhbt.net>)
31 * list_keys: consistent ESCAPE usage across DB types (Eric Wong <normalperson@yhbt.net>)
33 2013-02-02: Release version 2.67
35 * Serialize tempfile reaping (dormando <dormando@rydia.net>)
37 * reaper: ensure worker can be stopped via "!want" (Eric Wong <normalperson@yhbt.net>)
39 * domain removal also removes its default class (Eric Wong <normalperson@yhbt.net>)
41 * store: wrap create_class in a transaction to avoid races (Eric Wong <normalperson@yhbt.net>)
43 * mogstored: fix kqueue usage with daemonization (Eric Wong <normalperson@yhbt.net>)
45 * Filter the devices before we do an expensive sort. (Dave Lambley <davel@state51.co.uk>)
47 * httpfile: avoid killing worker on down sidechannel (Eric Wong <normalperson@yhbt.net>)
49 * move checksum and tempfile delete to delete worker (Eric Wong <normalperson@yhbt.net>)
51 * sqlite: use immediate transactions to prevent busy errors (Eric Wong <normalperson@yhbt.net>)
53 * disable Nagle's algorithm for accepted clients (Eric Wong <normalperson@yhbt.net>)
55 * ProcManager: favor using recently-used queryworkers (Eric Wong <normalperson@yhbt.net>)
57 * Do both sorts in one method, to save on shared initialisation. (Dave Lambley <davel@state51.co.uk>)
59 * Pull out device sorting into it's own method for overriding. (Dave Lambley <davel@state51.co.uk>)
61 * Reseed the random number generator after forking. (Dave Lambley <davel@state51.co.uk>)
63 * support nginx server type in mogstored command line options (Daniel Frett <daniel.frett@ccci.org>)
64 (also Gernot Vormayr <notti@gbcc.at>, others)
66 2013-01-06: Release version 2.66
68 * add a hook to cmd_updateclass (Daniel Frett <daniel.frett@ccci.org>)
70 * support updating the class to the default class which has an id of 0 (Daniel Frett <daniel.frett@ccci.org>)
72 * reaper: validate DB connection before reaping (Eric Wong <normalperson@yhbt.net>)
73 Fixes occasional crash in reaper process.
75 * improve handling of classes which change hash algorithm (Eric Wong <normalperson@yhbt.net>)
77 * fsck: skip non-existent FIDs properly (Eric Wong <normalperson@yhbt.net>)
79 * fsck: use replicate lock when fixing FID (Eric Wong <normalperson@yhbt.net>)
81 * query: allow "0" key on all commands which take keys (Eric Wong <normalperson@yhbt.net>)
83 * prevent reqid mismatches (and queryworker death) (Eric Wong <normalperson@yhbt.net>)
84 Fixes crash case with specific error types.
86 * fix use_dest_devs for rebalance (Pyry Hakulinen <pyry@automattic.com>)
87 Fixes "use_dest_devs" argument during rebalance.
89 * Fix "skip_devcount" during rebalance (Pyry Hakulinen <pyry@automattic.com>)
90 Now actually skips updating devcount column during rebalance.
92 2012-08-13: Release version 2.65
94 * Postgres advisory lock instead of table-based lock (Robin H. Johnson <robbat2@gentoo.org>)
95 Now requires minimum Postgres version of pg8.4.
97 * reaper: switch to Danga::Socket for scheduling (Eric Wong <normalperson@yhbt.net>)
99 * reaper: add queue_size_for_reaper server setting (Eric Wong <normalperson@yhbt.net>)
101 * reaper: add "queue_rate_for_reaper" server setting (Eric Wong <normalperson@yhbt.net>)
102 defaults to 1000, same as previously.
104 * reaper: global lock around DB interaction (Eric Wong <normalperson@yhbt.net>)
105 prevents reapers clobbering each other, causing a reduction in DB writes.
107 * tests: add basic test for reaper (Eric Wong <normalperson@yhbt.net>)
109 * fix tests when /etc/mogilefs/mogstored.conf exists (Eric Wong <normalperson@yhbt.net>)
111 * iostat: increase flexibility of iostat parser (Eric Wong <normalperson@yhbt.net>)
113 * iostat: allow MOG_IOSTAT_CMD env override (Eric Wong <normalperson@yhbt.net>)
115 * When a mogstored is down, die with a more informative message. (Dave Lambley <davel@state51.co.uk>)
117 2012-06-21: Release version 2.64
119 * Delete memcache data when we replicate fids (Pyry Hakulinen <pyry@automattic.com>)
121 * implement "case_sensitive_list_keys" server setting (Eric Wong <normalperson@yhbt.net>)
123 * get_paths: deprioritize devs in "drain" state (Eric Wong <normalperson@yhbt.net>)
125 * make marking a host down cause devices to act as down (Eric Wong <normalperson@yhbt.net>)
127 * monitor skips hosts marked dead or down (Eric Wong <normalperson@yhbt.net>)
129 2012-05-29: Release version 2.63
131 * Critical bugfix for Postgres users introduced by 2.61. New file uploads
132 would fail. (noticed by robin H. Johnson, fixed by Eric Wong)
134 2012-05-19: Release version 2.62
136 * Critical bugfix for a compilation error (dormando, reported by Robin)
138 * Fix for upgrading a Postgres install for checksums (Robin * H. Johnson <robbat2@gentoo.org>)
140 2012-05-18: Release version 2.61
142 * fix issue #57 by Pyry and Eric (dormando <dormando@rydia.net>)
143 (mogadm host status sometimes allowed typos)
145 * avoid unnecessary devcount update in create_close (Eric Wong <normalperson@yhbt.net>)
147 * size arg check from tomas doran (dormando <dormando@rydia.net>)
148 (pass in a "size" argument (in bytes) to create_open and mogilefs will
149 ensure there's enough free space for it)
151 * sqlite: implement locking via tables (Eric Wong <normalperson@yhbt.net>)
153 * worker/query: Add optional callid parameter (Gernot Vormayr <notti@bgcc.at>)
154 (allows command pipelining)
156 * delete: prevent orphan files from replicator race (Eric Wong <normalperson@yhbt.net>)
158 * fsck: prevent running over 100% completion (Eric Wong <normalperson@yhbt.net>)
160 * fsck: cleanup and reduce unnecessary devcount updates (Eric Wong <normalperson@yhbt.net>)
162 * fsck: update devcount, forget devs on unfixable FIDs (Eric Wong <normalperson@yhbt.net>)
164 * fsck: log bad count correctly instead of policy violation (Eric Wong <normalperson@yhbt.net>)
166 * tests: add tests for fsck functionality (Eric Wong <normalperson@yhbt.net>)
168 * monitor: only broadcast reject_bad_md5 on change (Eric Wong <normalperson@yhbt.net>)
170 * worker: delete_domain returns has_classes error (Eric Wong <normalperson@yhbt.net>)
172 * log: enable autoflush for stdout logging (Eric Wong <normalperson@yhbt.net>)
174 2012-03-30: Release version 2.60
176 * Fix fsck status when running for the first time (dormando <dormando@rydia.net>)
178 * Checksum support (Major update!) (Eric Wong <normalperson@yhbt.net>)
179 See doc/checksums.txt for an overview of how the new checksum system
180 works. Also keep an eye on the wiki (http://www.mogilefs.org) for more
181 complete documentation in the coming weeks.
183 2012-02-29: Release version 2.59
185 * don't make SQLite error out on lock calls (dormando <dormando@rydia.net>)
187 * Postgres wasn't honoring a no-wait timeout (dormando <dormando@rydia.net>)
189 2012-02-28: Release version 2.58
191 * reduce UPDATE's to device table (dormando <dormando@rydia.net>)
193 * replicate: retry on short writes to destination (Eric Wong <normalperson@yhbt.net>)
195 * enable TCP keepalives for accepted sockets (Eric Wong <normalperson@yhbt.net>)
197 * Populate memcache even when noverify is missing (Pyry Hakulinen <pyry@automattic.com>)
199 * Remove FID from memcache when it is deleted (Pyry Hakulinen <pyry@automattic.com>)
201 * Unset memc when memcache servers have been removed (Pyry Hakulinen <pyry@automattic.com>)
203 * Filter out illegal memcache servers from memcache_servers (Pyry Hakulinen <pyry@automattic.com>)
205 * Add skip_mkcol setting for servers which do not need it (Pyry Hakulinen <pyry@automattic.com>)
207 * skip_devcount variable that disables devcount updates (Pyry Hakulinen <pyry@automattic.com>)
209 * Back off if master DB is down (dormando <dormando@rydia.net>)
211 * use cached setting for slave list (dormando <dormando@rydia.net>)
213 * fix "fsck never stops" issue (dormando <dormando@rydia.net>)
215 2012-01-31: Release version 2.57
217 * Silence a warning about undefined value introduced by the slave database ordering work (hachi@kuiki.net)
219 * Need a hook to be able to check the slave list during startup (hachi@kuiki.net)
221 2012-01-27: Release version 2.56
223 * Add database connect timeouts (dormando <dormando@rydia.net>)
225 * fix potential hang in JobMaster added in 2.55 (dormando <dormando@rydia.net>)
227 * fix "set_weight" command (Eric Wong <normalperson@yhbt.net>)
229 * sqlite: consider SQLITE_BUSY and SQLITE_LOCKED deadlocks (Eric Wong <normalperson@yhbt.net>)
231 * kill a little more dead fsck/Checker code (dormando <dormando@rydia.net>)
233 * Destroy mogdeps (dormando <dormando@rydia.net>)
235 * improve slave handling code (dormando <dormando@rydia.net>)
237 * don't spew errors if the master goes down (dormando <dormando@rydia.net>)
239 * provide an async server setting cache via monitor worker (dormando <dormando@rydia.net>)
241 * fix return value of commands that clear_cache (Eric Wong <normalperson@yhbt.net>)
243 * make reaper wait less time in test mode (dormando <dormando@rydia.net>)
245 * queryworker: reimplement "clear_caches" command (Eric Wong <normalperson@yhbt.net>)
247 * worker: use timeout with read_from_parent() instead of sleep (Eric Wong <normalperson@yhbt.net>)
249 * Fixed issue where too many devices being active could cause the monitor job
250 to be timed out by the watchdog. (Tomas Doran)
252 2011-11-14: Release version 2.55
254 * fixed sources in replication are now a suggestion (dormando <dormando@rydia.net>)
256 * More stats to help troubleshoot rebalance (dormando <dormando@rydia.net>)
258 * return 1 from condthrow if all is well (dormando <dormando@rydia.net>)
260 * schedule fsck replications for the future. (dormando <dormando@rydia.net>)
262 * stop enforcing a source id on new file upload (dormando <dormando@rydia.net>)
264 * restore new file upload replication priority (dormando <dormando@rydia.net>)
266 * Prevent queue related MySQL query hangs (dormando <dormando@rydia.net>)
268 2011-10-29: Release version 2.54
270 * Issue 36: Further insulate from mysql restarts resetting the fid counter (dormando <dormando@rydia.net>)
272 * Allow default class to be overridden again. (dormando <dormando@rydia.net>)
274 * Fix crash in old delete worker code (Daniel Frett <daniel.frett@ccci.org>)
276 * Fix mb_free() counting empty device as missing (git.user <git.user@gmail.com>)
278 * sqlite: fix mogdbsetup failure on new setups (Eric Wong <normalperson@yhbt.net>)
280 * fid size workaround for lighttpd 1.4.x (dormando <dormando@rydia.net>)
282 * Fix various issues in the new mogilefs server query worker. (Tomas Doran <bobtfish@bobtfish.net>)
284 * Allow chunked PUT's of unlimited size (dormando <dormando@rydia.net>)
287 * Fix fsck fixing a file from logging a message which appears to be
288 two commands (due to spurious \n). Also fix debug function to
289 not be able to log messages like this.
291 2011-08-12: Release version 2.53
293 * Fix host status not updating for trackers (important)
295 2011-07-30: Release version 2.52
297 * Plugins (such as FilePaths) might want to be run in info/debug commands (Michael Baehr <mbaehr@plos.org>)
299 * schema version 14; support devices > 16TB (dormando <dormando@rydia.net>)
301 * Make FSCK worker handle dead devices (dormando <dormando@rydia.net>)
303 * Throw out old HTTPFile->size code and use LWP (dormando <dormando@rydia.net>)
305 * Remove forced loading of DBD::mysql (dormando <dormando@rydia.net>)
307 * Don't test write on readonly devices (Akzhan Abdulin <akzhan.abdulin@gmail.com>)
309 2011-06-27: Release version 2.51
311 * Add minor backcompat for ZoneLocal and friends (dormando <dormando@rydia.net>)
313 * Only monitor a device if we should monitor it. (dormando <dormando@rydia.net>)
315 2011-06-15: Release version 2.50
317 * Completely rewire meta object caches. Device/Host/Class/Domain caches are
318 now asynchronously loaded via the Monitor worker. This should drastically
319 reduce the number of small queries issued against the master database.
320 (dormando <dormando@rydia.net>)
322 * Don't run workers until Monitor runs once (dormando <dormando@rydia.net>)
324 * s/TYPE/ENGINE/ for innodb initialization (dormando <dormando@rydia.net>)
326 * Create mogile database explicitly with UTF-8 encoding. (Robin H. Johnson <robbat2@gentoo.org>)
328 * Actually use the MOGTEST_* variables for Postgres testing... (Robin H. Johnson <robbat2@gentoo.org>)
330 * Add support for config file includes for Mogstored under lighttpd (Jason Mills <jmmills@cpan.org>)
332 * Make postgres use new delete worker code (Robin H. Johnson <robbat2@gentoo.org>)
334 * New test env variables: MOGTEST_DBROOT{USER,PASS} for easier test usage. (Robin H. Johnson <robbat2@gentoo.org>)
336 * Document test variables. (Robin H. Johnson <robbat2@gentoo.org>)
338 * Support inclusion of custom lighttpd config. (Jason Mills <jmmills@cpan.org>)
340 2011-01-13: Release version 2.46
342 * Fix job_master crash under postgres (Robin H. Johnson <robbat2@gentoo.org>)
344 * Revert "only dbh->ping if not used in over a minute" (dormando <dormando@rydia.net>)
345 *IMPORTANT FIX* if you're using 2.45, you should upgrade to this.
347 * Example application. (dormando <dormando@rydia.net>)
349 * missing $fidid for source_down error message (dormando <dormando@rydia.net>)
351 2011-01-08: Release version 2.45
353 * file_debug command (dormando <dormando@rydia.net>)
355 * add "file_info" command for fetching metadata. (dormando <dormando@rydia.net>)
357 * don't allow clients to upload to the wrong dev (dormando <dormando@rydia.net>)
359 * validate database handles in the right places (dormando <dormando@rydia.net>)
361 * only dbh->ping if not used in over a minute (dormando <dormando@rydia.net>)
363 * make list_fids work with gaps (dormando <dormando@rydia.net>)
365 * Postgres enqueue_fids_* cleanup (Robin H. Johnson <robbat2@gentoo.org>)
367 * Fixes MogileFS::Store::retry_on_deadlock to honor non-deadlock exceptions (Jason Mills <jmmills@cpan.org>)
369 * Implements tests for MogileFS::Store::retry_on_deadlock (Jason Mills <jmmills@cpan.org>)
371 * Implements tests for MogileFS::Store::ignore_replace (Jason Mills <jmmills@cpan.org>)
373 * job_master was never revalidating its dbh handle. (dormando <dormando@rydia.net>)
375 * add a couple useful stats (dormando <dormando@rydia.net>)
377 * Correct iostat command on darwin (Tomas Doran <bobtfish@bobtfish.net>)
379 * Fix test db creation with SQLite (Tomas Doran <bobtfish@bobtfish.net>)
381 * Fix SQLite so tracker at least starts (Tomas Doran <bobtfish@bobtfish.net>)
383 * additional debian packaging fixes (kad <kad@blegh.net>)
385 * debian packaging updates. (Andre Bohr <andrepascha@googlemail.com>)
387 * Documentation updates. (Pyry Hakulinen <pyh@iki.fi>)
389 * HTTPFile returns -1 if the file is missing from the device. Content-Length: 0 is valid and it should return BLEN not MISS. (Pyry Hakulinen <pyh@iki.fi>)
391 * some further editing of the info file. (dormando <dormando@rydia.net>)
393 * Changed repository metadata (Tomas Doran <bobtfish@bobtfish.net>)
395 2010-11-25: Release version 2.44
397 * Fix issue with rebalance not filtering source devs from the
400 * Make global rebalance limits work (Martijn Lina)
402 2010-10-10: Release version 2.43
404 * Make over-replication fixable again. (sigh)
406 * Fix old bug in MultipleHosts() which would not let you drop from
407 mindev > 1 down to 1.
409 2010-10-08: Release version 2.42
411 * Make FSCK run again (Andre Pascha)
413 * Fix Postgres schema upgrade issue (hopefully)
415 2010-10-06: Release version 2.41
417 * One line change that to fix uprading to 2.40
419 2010-09-28: Release version 2.40
421 * Optimize worker sleep patterns and worker/parent communications.
423 * New rebalance/drain code. See the docs/wiki for how to use.
424 ***NOTE*** Old drain/rebalance code is disabled. Setting a device
425 into drain mode no longer does what you think it would.
426 http://code.google.com/p/mogilefs/wiki/Rebalance
428 2010-08-13: Release version 2.37
430 * Make HTTP DELETE's work reliably
432 * Fix obscure crashes related to "unknown devices"
434 * make it slightly harder to crash trackers with bad slave DB settings
437 * make tracker -> storage node connection timeout configurable.
438 was hardcoded to 2 seconds. (Tomas Doran)
440 * update_class command (Tomas Doran)
442 2010-04-16: Release version 2.36
444 * Bump required version of perlbal for mogstored.
446 * Critical bug fix for creating files.
447 If you have many dead devices, poor filter ordering could cause
448 MogileFS to not consider any alive devices for new files.
450 * Actually default to BIGINT under MySQL...
451 Bug would always initialize new setups to INT.
453 2010-04-02: Release version 2.35
455 * Nuke ancient mogilefs 1.1 replication code.
456 no_unreachable_tracking and old_repl_compat variables are gone.
459 * Support modifying class replpolicy strings (requires new
460 mogadm/MogileFS::Client) (dormando)
462 * Print fidid and devid on errors when fsck fails to fix something
465 * Allow list_keys to work with a prefix of '0' (dormando)
467 * Print timestamp when logging to STDOUT (t0m)
469 * Sort by free space and weight fewer devices to avoid CPU churn
472 * Fix deadlock-related crash bugs in db queue fetch routines.
474 * Fix dependencies in MogileFS::Server (t0m)
476 * Fix bug in list_keys command that prevented searches with a
477 '0' prefix. (Ask Bjørn Hansen)
479 2009-12-05: Release version 2.34
481 * Fix bug in new copycount reduction code. If it was more than off by
482 one it wouldn't reduce the count properly.
484 * Improve accept loop. A reasonably busy tracker could start dropping
485 new client connections too easily.
487 2009-11-24: Release version 2.33
489 * 'mogadm fsck status' will now be more accurate.
491 * Support non-GNU df (paul armstrong)
493 * Remove old !replication command. It's in `mogadm stats` and tends
494 to kill the parent process.
496 * Force refreshing internal monitoring status every 5 minutes. Help
497 work around a potential bug where state changes are missed.
499 * Use new delete queue for tempfile culling
501 * Calculate free space from available space, not total space
504 * FSCK code has new tunables to control how aggressive it runs:
505 queue_size_for_fsck (how many fids to keep in file_to_queue table)
506 queue_rate_for_fsck (how many fids to put into the table per second)
507 the generic internal queue is now tunable:
508 internal_queue_limit (how many fids to pull out of a queue table at
509 once. old default was 500).
510 All are tunable by 'mogadm settings set'
513 * Replication will now attempt to handle over replication situations.
514 FSCK will catch over replication as a policy violation, and
515 replicate will attempt to fix it. (dormando)
516 (rarely it might need multiple fscks)
518 * Since FIDSizes is no longer used, remove it and remove gearman
519 dependency. (dormando)
521 * FSCK no longer rabidly fills the queue table. (dormando)
523 * Make storage code resilient to rare deadlocks (dormando)
525 * Add 'max_handles' config option to restart a DB connection if there
526 are too many handles to it (victori).
528 2009-10-18: Release version 2.32
530 * No changes... MFS is hard to release due to mogdeps :/
532 2009-10-18: Release version 2.31
534 * Fix create_close race condition. (pipegeek)
536 * Fix bug in reporting of available disk space.
538 * Many minor bug/documentation fixes.
540 * MySQL and Postgres installs now use BIGINT's for fid/length by
541 default. (dormando, robbat2)
543 * Accept 405 responses to MKCOL from the WebDAV server since it often
544 just means that the directory already exists. (Ask Bjørn Hansen)
546 * Fix showing domain and class in mogadm output when there's only the
547 default class in the domain (Mark Imbriaco)
549 * mogstored: pidfile support
551 * New FSCK work and error for BCNT for bad devcount values (they would
552 not otherwise be caught unless the triggered another fix).
554 2009-01-12: Release version 2.30
556 * fsck will now fix broken 'devcount' cols.
558 * schema version bump to 12, and new delete worker code to use the new
559 queue system. delete should be faster and more scalable.
561 * add server setting queue_rate_for_fsck to allow rate limiting how
562 fast the new distributed fsck creates jobs. the original default of
563 10k could utterly defeat wimpy databases.
565 * Support 0 byte files.
567 * Fix a bug where rebalance would accidentally delete copies of a fid.
569 * Create new internal queue management system, with new job
570 'JobMaster'. This greatly reduces database load and increases
571 throughput for workers using the new system.
573 * Add 'no_unreachable_tracking' config. Disables more of the old
574 replication code. Use this if you have no 1.x trackers.
576 * Add hook for alternate replication sources. Obscure, but can be
579 * Add replicate_order_final_choices hook, so multidc replication may
580 pull from the local network if one copy already exists.
582 * Fix subtle bugs in process management.
584 * Allow overriding of default classes.
586 2008-08-18: Release version 2.20
588 * One more time, and hopefully never again. No changes. META.yml
591 2008-08-18: Release version 2.19
593 * No changes except for META.yml fixes.
594 _should_ be able to upload releases without owning half of CPAN.
596 2008-08-16: Release version 2.18
598 * Add repl_use_get_port option (Brian Lynch)
600 * Remove tempfile data and rows on create_close (Chaos Wang)
602 * Don't delete files accidentally during tempfile table cleanup
604 * Specify username to run the mogstored daemon (Jonathan Share)
606 * Many spelling errors corrected.
608 * PostGres locking routines did not include the hostname for the lock
611 * RFC 2518 says we "should" use a trailing slash when calling
612 MKCOL. Some servers (nginx) appears to require it. (Spotted by
615 * Add server option 'rebalance_ignore_missing' in mogilefsd config
616 that allows the rebalance to ignore files that are already missing
617 when it tries to delete them.
619 * Fix MultipleHosts replication policy to no longer return desperate
620 devices after no longer being desperate, instead returning a state
621 which will queue for retries in the future till it can be truly
622 happy. This prevents files from being replicated to all writable
623 devs when there are two few writable hosts to satisfy the policy.
625 * Add --chmod-mountpoints option to mogautomount, in an attempt to
626 prevent mogstored machines from accidentally writing to their under-
629 * New optional argument 'startpos' to fsck_reset.
631 * Use correct per-Store port, defaulting to UNIX sockets on localhost.
633 * add --dbport option to mogdbsetup (Ask Bjoern Hansen)
635 * Fix state_change() bug that could make file_to_delete_later
636 grow unnecessarily (Radu Greab)
638 * Add Mogstored::HTTPServer::None to allow using mogstored
639 with unmanaged backend DAV servers.
641 * Add experimental cmd_edit_file. Client requires DAV MOVE and
642 partial PUT on the store to use it.
644 * make mogstored and mogilefsd use the now-bundled dependency
645 Perl modules as a last resort, unless MOGILE_NO_BUILTIN_DEPS
646 environment variable is true. this makes it easier for people
647 to use mogilefs, without dependency hell. distros/packagers
648 are expected to ignore (or scoff at) this "feature". but
649 easier for people working from tarball/svn releases. bundled
650 dependencies will be updated over time, as needed.
652 * Bring the SQLite store up to date
654 * Increase the timeouts in the test suite
656 * In the test suite, also search for mogadm in /usr/local/bin/ and
657 /usr/local/sbin (spotted by Dean Wilson)
659 * SCHEMA VERSION 10: 'replpolicy' column on 'class' table.
660 it's safe to --ignore-schema-version and run this mogilefsd
661 against an older schema. new column enables per-class
662 pluggable replication policies. it was always
663 abstract, but not easy to plugin your own alternatives.
664 see doc/pluggable-replication-policies.txt
666 * add start of a MogileFS::ReplicationPolicy::Union implementation
668 * fix crash in queryworker's create_open command, when a device
669 has its directory made on a mogile storage node (the host of
670 which is being monitored by the 'monitor' process), but the
671 device isn't registered in the devices table yet.
673 2007-07-03: Release version 2.17
675 * get_paths command now takes a pathcount option, defaulting to
676 2, instead of having a hardcoded constant of 2. This allows
677 requesting more than 2 paths to a file.
679 * make fsck log over-replicated files as policy violations. it
680 won't delete over-replicated files, though, just log
682 * Document how to test MogileFS under doc/testing.txt. You really
683 should read this if you want to use MogileFS to store your data.
685 * Add a safety check to ensure that Postgresql-8.2 or newer is used.
687 * Update mogdbsetup usage, and ensure it chooses the correct admin
688 username automatically.
690 * Document the --type option to mogdbsetup.
692 * Introduce the PostGres Store implementation. The locking system might
693 still have issues, beware of stale locks! Initial prototype by Radu
694 Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson
695 <robbat2@gentoo.org>.
697 * start of support to make mogstored wrap Apache + web_dav
699 * Remove duplicated [fsck] in log output of Fsck worker.
701 * Handle HiRes gettimeofday correctly to get useful results. Arrays are
702 important. This gives us correct timing output.
704 * Handle input to log() correctly. Based on the implementation of
705 Sys::Syslog::syslog(), produces no ugly warnings, and makes sure that
706 printf stuff works nicely.
708 * The unix_timestamp function belongs to the Store, not other classes.
709 Need to add test cases for process_deletes and stats.
711 * Using NULL during an INSERT for the AUTO_INCREMENT column does not
712 work very well outside of MySQL. Pass the correct number of arguments
713 to the INSERT instead.
715 * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation
716 for database independence. If you need the unix timestamp, include the output
717 of $self->unix_timestamp directly into your query.
719 * Alter $0 so that the scripts show up as '$SCRIPTNAME' in the process
720 listing instead of '/usr/bin/perl $SCRIPTNAME'. This makes init.d
721 scripts easier to manage.
723 * make mogstored's lighttpd config use mod_status for "/", so
724 mogadm doesn't think it's dead when it previously saw a 404
725 (Justin Huff <jjhuff@mspin.net>)
727 * remove Linux::AIO support, now that Perlbal has removed it as well,
728 and because Linux::AIO support (when Perlbal then chooses
729 IO::AIO) was hanging mogstored on shutdown. so also add a
730 mogstored shutdown test (after a full daemonization of it)
732 * make Mgd::validate_dbh() re-check/ping slave dbhs as well.
733 (problem mentioned by Steven Shou <steven.shou@verizon.net>)
735 * support drive identifiers above sdz (Arjan <info@bouncetek.com>)
737 * make mogstored's iostat child process properly shutdown,
738 even when iostat binary isn't installed. (previously
739 it was stuck in a loop every 10 seconds, hoping for
740 iostat to be installed, but never respecting parent
743 * Change delete worker to use new DeviceStates interface.
745 * Fix get_paths to honor new device state of 'drain' via new
746 DeviceStates interface.
748 * use significantly less CPU when re-broadcasting around
749 iostat device utilization% to child processes. (future:
750 don't rebroadcast at all and use shared memory)
752 * slightly faster fsck (do less syscalls)
754 * efficiency: don't broadcast dup state information to children
755 (track in parent what children know already)
757 * if using Gearman::Server >= 1.09, respawn the fidsizes
760 2007-05-09: Release version 2.16
762 * BUG FIX from 2.15: partially written but never closed
763 tempfiles weren't being cleaned up properly.
765 * start to work better when compiled as a stand-alone
766 PAR all-in-one script/archive
768 2007-05-07: Release version 2.15 ("fsck/drain/rebalance")
770 * minor bug fixes and enhancements for MultipleHosts replication
771 policy. bunch of corner cases now checked with new tests.
772 now easy to write more replication policy tests in future.
774 * replication policies can now return "desperate" requests,
775 signalling that a replication reassessment should be
776 enqueued for the future, to see if things could be improved.
777 (that part's not currently implemented, but the real feature
778 and motivation is that the rebalancer now won't delete a
779 DevFID if it results in a desperate move, only an ideal move. )
781 * replication policies now can optionally return a new return
782 value of the (new) type MogileFS::ReplicationRequest, which
783 has pretty accessor names, can suggest multiple places,
784 can indicate non-ideal emergency replication decisions.
785 old plugins' return values will be transparently upgraded
786 to the equivalent new return value objects.
788 * adding new device state: "drain". it's a hybrid of "dead"
789 (in that files are migrated off it) and "readonly", it that
790 it still serves traffic... it just doesn't get new files.
791 this also introduces the new object-oriented DeviceState class,
792 and device_state($name) utility function to get the DeviceState
795 * internal code cleanup. notably, kill the old & nasty legacy
796 'find_deviceid' function which was ridiculously long and hairy.
797 the two callers are now more readable with sorts/greps/etc.
799 * make mogstored's devN/usage writing process (DiskUsage) be less
800 racy with the mogilefsd monitoring code... don't open file for
801 write... open read/write, then in one write system call, write
802 the entire file, with newline padding at end to cover old data,
803 then truncate it if necessary. should remove harmless (but scary)
804 error messages previously reported by the mogilefsd monitor
805 about zero-length usage files.
807 * new protocol commands to list/set (certain) server settings,
808 with value sanity checking (see MogileFS::Config for which
809 are settable, and with what values). needed for "enable_rebalance".
810 was partially enabled before for slave settings. also needed
811 for memcached support before, which was never possible to
812 set with mogadm, only with db tweaking.
814 * make mogilefsd fsck use new mogstored fid_sizes command, to
815 do bulk stats. speeds up fscks a ton.
817 * be robust against system clocks that go backwards between
819 http://lists.danga.com/pipermail/mogilefs/2007-April/000897.html
821 * Put gearman server in mogstored process, add worker
822 'mogstored-fidsizes' which runs as subprocess of mogstored. Add
823 side-channel command 'fid_sizes' which allows us to quickly enumerate
824 and get sizes for files across entire devices on a storage node.
826 * remove all code like $state eq "readonly", $state=~ /^dead|down$/
827 and instead convert it into specific questions on policy/traits
828 of given state, like $dev->should_put_new_files_on, or
829 $dev->should_drain_files_off. see MogileFS::DeviceState,
830 objects of which are accessed via $dev->dstate, or new
831 MogileFS::Util device_state($name) wrapper.
833 * start of rebalance support. (where replication workers, in their
834 idle time, can rearrange files to even out disk space and/or IO
835 activity on storage nodes... policy isn't hard-coded, and is
836 in fact currently random)
838 * lighttpd support in both mogilefsd and mogstored. passes test
839 suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
841 * abstract out the HTTP server support in mogstored, so
842 mogstored isn't just a perlbal wrapper, but an anything
843 wrapper. (in particular, lighttpd and apache) mogstored still
844 exists for all its other misc admin/monitoring functions,
845 but can then manage/configure apache/lighttpd child process(es).
846 so far they're just stubbed out.
848 * split mogstored into separate files per class, rather than one
851 2007-04-24: Release version 2.10
853 * bug from earlier refactoring: changing some 'next' to 'return'
854 in MogileFS::Device's create_directory method. (thanks to
855 Justin Huff <jjhuff@mspin.net>)
857 * make sure mogdbsetup doesn't upgrade an existing table (with
858 potentially lot of data) from MyISAM to InnoDB. just warn.
859 only new tables should become InnoDB on creation. also,
860 detect InnoDB even on old MySQL 4.0.x, not just 4.1/5.0.
862 * make fsck faster by reducing number of db queries (both
863 reads and writes), though more unrelated fastness remains to
866 * make fsck_status faster (keep summary stats of evcode counts,
867 rather than doing a full GROUP BY query all the time)
869 2007-04-20: Release version 2.09
871 * filesystem checker (Fsck worker). off by default, unless
872 it's enabled via protocol. Control/monitor it with mogadm
873 in MogileFS-Utils 2.08, which needs MogileFS::Client 1.06.
875 * replication speed-up on configurations with only 1 host.
876 (replication would randomly have no suggestions before, when
877 there was only 1 target host, so replication would be rescheduled
878 until the future, when random returned a different device on
881 2007-04-17: Release version 2.08
883 * (no runtime-visible changes from 2.07)
885 * mogilefsd: remove incomplete "Checker" worker, replace with
886 incomplete "Fsck" worker.
888 * test cleanup/robustness improvements. properly skips testing when
889 testing deps not found. but searches harder for them now, too.
890 tests run under "make disttest".
892 * packaging cleanups, released using ShipIt.
897 * mogilefsd: Split Plugin::MetaData and Plugin::FilePaths into their own distributions.
899 * mogilefsd: Fix mogdbsetup to not ask empty questions.
901 * mogilefsd: command line/config file support for listening on specific IPs, also
902 support for listening on multiple IPs/ports
905 * mogstored: use XS HTTPHeaders by default, unless disabled with environment variable
907 * mogilefsd: memcache support for get_paths (see doc/memcache-support.txt)
910 * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting
911 Perlbal, Linux::AIO/IO::AIO, etc baggage). so they don't own listening
912 sockets, pipes to child workers, signal handlers, etc. just a lot
913 cleaner now, and SIGTERM, SIGINT properly shut everything down now,
914 both in foreground and as daemon
917 * mogstored: this changelog is totally neglected. :/ see svn log.
919 * mogstored: make perlbal's "shutdown graceful" work, by not doing
920 sidechannel accepting ourselves (which never hung up),
921 but subclass Perlbal's TCPListener class, which does it
924 2006-12/2007-01: (2.00_05)
925 * mogilefsd: everything converted to OO API internally. old internal APIs removed.
927 * mogilefsd: be database-agnostic. Currently only works with MySQL (and
928 SQLite as a joke/demo), but Pg/Oracle coming in the future.
930 * mogilefsd: built-in I/O activity monitoring between mogstored/mogilefsd Monitor
933 * mogilefsd: much improved internal communication between worker processes
935 * mogilefsd: start of better docs
938 * mogilefsd: pidfile support (Radu Greab <radu@yx.ro>)
942 * mogilefsd: remove all old internal APIs, update everything to use new OO APIs,
943 expanding OO APIs where necessary (lots of places). so much more
944 beautifully hackable now.
946 * mogstored: kill child processes (diskusage and iostat) when being killed.
949 * mogstored: set aio threads after daemonizing. needed by Linux::AIO/IO::AIO, it seems?
952 * mogilefsd: remove non-HTTP mode ("NFS mode") from the server
955 * mogstored: refuse to start up with missing Linux::AIO/IO::AIO or broken Linux::AIO
958 * mogstored: set aio_threads as a function of number of disks
961 * mogilefsd: major refactoring/cleanup/new features ("MogileFS 2.0")
964 * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the
965 server is restarted while the tempfile table is empty.
968 * mogilefsd: allow create_open to take optional fid parameter which enables you to
969 dictate which fid to use internally and to not rely on MySQL's auto_increment
972 * mogilefsd: make Mgd::get_device_summary() always return all devices, regardless
975 * mogilefsd: update all callers of get_device_summary to filter on the device
976 status, if they need to. (provided more clarity into what
977 callers' intentions were...)
979 * mogilefsd: add a new device state 'readonly' which means: it can be read from
980 from clients, it can be replicated from, but no new files can go
981 on it or be replicated onto it. and it also reaps, meaning the
982 device is fucked. the filesystem probably ate itself.
985 * mogstored: write out usage files for devices, even if they're not on their own mount point.
986 also explicitly include the '-k' flag to df, so we know they're KiB.
989 * mogstored: new config syntax and command line options