1 2013-02-02: Release version 2.67
3 * Serialize tempfile reaping (dormando <dormando@rydia.net>)
5 * reaper: ensure worker can be stopped via "!want" (Eric Wong <normalperson@yhbt.net>)
7 * domain removal also removes its default class (Eric Wong <normalperson@yhbt.net>)
9 * store: wrap create_class in a transaction to avoid races (Eric Wong <normalperson@yhbt.net>)
11 * mogstored: fix kqueue usage with daemonization (Eric Wong <normalperson@yhbt.net>)
13 * Filter the devices before we do an expensive sort. (Dave Lambley <davel@state51.co.uk>)
15 * httpfile: avoid killing worker on down sidechannel (Eric Wong <normalperson@yhbt.net>)
17 * move checksum and tempfile delete to delete worker (Eric Wong <normalperson@yhbt.net>)
19 * sqlite: use immediate transactions to prevent busy errors (Eric Wong <normalperson@yhbt.net>)
21 * disable Nagle's algorithm for accepted clients (Eric Wong <normalperson@yhbt.net>)
23 * ProcManager: favor using recently-used queryworkers (Eric Wong <normalperson@yhbt.net>)
25 * Do both sorts in one method, to save on shared initialisation. (Dave Lambley <davel@state51.co.uk>)
27 * Pull out device sorting into it's own method for overriding. (Dave Lambley <davel@state51.co.uk>)
29 * Reseed the random number generator after forking. (Dave Lambley <davel@state51.co.uk>)
31 * support nginx server type in mogstored command line options (Daniel Frett <daniel.frett@ccci.org>)
32 (also Gernot Vormayr <notti@gbcc.at>, others)
34 2013-01-06: Release version 2.66
36 * add a hook to cmd_updateclass (Daniel Frett <daniel.frett@ccci.org>)
38 * support updating the class to the default class which has an id of 0 (Daniel Frett <daniel.frett@ccci.org>)
40 * reaper: validate DB connection before reaping (Eric Wong <normalperson@yhbt.net>)
41 Fixes occasional crash in reaper process.
43 * improve handling of classes which change hash algorithm (Eric Wong <normalperson@yhbt.net>)
45 * fsck: skip non-existent FIDs properly (Eric Wong <normalperson@yhbt.net>)
47 * fsck: use replicate lock when fixing FID (Eric Wong <normalperson@yhbt.net>)
49 * query: allow "0" key on all commands which take keys (Eric Wong <normalperson@yhbt.net>)
51 * prevent reqid mismatches (and queryworker death) (Eric Wong <normalperson@yhbt.net>)
52 Fixes crash case with specific error types.
54 * fix use_dest_devs for rebalance (Pyry Hakulinen <pyry@automattic.com>)
55 Fixes "use_dest_devs" argument during rebalance.
57 * Fix "skip_devcount" during rebalance (Pyry Hakulinen <pyry@automattic.com>)
58 Now actually skips updating devcount column during rebalance.
60 2012-08-13: Release version 2.65
62 * Postgres advisory lock instead of table-based lock (Robin H. Johnson <robbat2@gentoo.org>)
63 Now requires minimum Postgres version of pg8.4.
65 * reaper: switch to Danga::Socket for scheduling (Eric Wong <normalperson@yhbt.net>)
67 * reaper: add queue_size_for_reaper server setting (Eric Wong <normalperson@yhbt.net>)
69 * reaper: add "queue_rate_for_reaper" server setting (Eric Wong <normalperson@yhbt.net>)
70 defaults to 1000, same as previously.
72 * reaper: global lock around DB interaction (Eric Wong <normalperson@yhbt.net>)
73 prevents reapers clobbering each other, causing a reduction in DB writes.
75 * tests: add basic test for reaper (Eric Wong <normalperson@yhbt.net>)
77 * fix tests when /etc/mogilefs/mogstored.conf exists (Eric Wong <normalperson@yhbt.net>)
79 * iostat: increase flexibility of iostat parser (Eric Wong <normalperson@yhbt.net>)
81 * iostat: allow MOG_IOSTAT_CMD env override (Eric Wong <normalperson@yhbt.net>)
83 * When a mogstored is down, die with a more informative message. (Dave Lambley <davel@state51.co.uk>)
85 2012-06-21: Release version 2.64
87 * Delete memcache data when we replicate fids (Pyry Hakulinen <pyry@automattic.com>)
89 * implement "case_sensitive_list_keys" server setting (Eric Wong <normalperson@yhbt.net>)
91 * get_paths: deprioritize devs in "drain" state (Eric Wong <normalperson@yhbt.net>)
93 * make marking a host down cause devices to act as down (Eric Wong <normalperson@yhbt.net>)
95 * monitor skips hosts marked dead or down (Eric Wong <normalperson@yhbt.net>)
97 2012-05-29: Release version 2.63
99 * Critical bugfix for Postgres users introduced by 2.61. New file uploads
100 would fail. (noticed by robin H. Johnson, fixed by Eric Wong)
102 2012-05-19: Release version 2.62
104 * Critical bugfix for a compilation error (dormando, reported by Robin)
106 * Fix for upgrading a Postgres install for checksums (Robin * H. Johnson <robbat2@gentoo.org>)
108 2012-05-18: Release version 2.61
110 * fix issue #57 by Pyry and Eric (dormando <dormando@rydia.net>)
111 (mogadm host status sometimes allowed typos)
113 * avoid unnecessary devcount update in create_close (Eric Wong <normalperson@yhbt.net>)
115 * size arg check from tomas doran (dormando <dormando@rydia.net>)
116 (pass in a "size" argument (in bytes) to create_open and mogilefs will
117 ensure there's enough free space for it)
119 * sqlite: implement locking via tables (Eric Wong <normalperson@yhbt.net>)
121 * worker/query: Add optional callid parameter (Gernot Vormayr <notti@bgcc.at>)
122 (allows command pipelining)
124 * delete: prevent orphan files from replicator race (Eric Wong <normalperson@yhbt.net>)
126 * fsck: prevent running over 100% completion (Eric Wong <normalperson@yhbt.net>)
128 * fsck: cleanup and reduce unnecessary devcount updates (Eric Wong <normalperson@yhbt.net>)
130 * fsck: update devcount, forget devs on unfixable FIDs (Eric Wong <normalperson@yhbt.net>)
132 * fsck: log bad count correctly instead of policy violation (Eric Wong <normalperson@yhbt.net>)
134 * tests: add tests for fsck functionality (Eric Wong <normalperson@yhbt.net>)
136 * monitor: only broadcast reject_bad_md5 on change (Eric Wong <normalperson@yhbt.net>)
138 * worker: delete_domain returns has_classes error (Eric Wong <normalperson@yhbt.net>)
140 * log: enable autoflush for stdout logging (Eric Wong <normalperson@yhbt.net>)
142 2012-03-30: Release version 2.60
144 * Fix fsck status when running for the first time (dormando <dormando@rydia.net>)
146 * Checksum support (Major update!) (Eric Wong <normalperson@yhbt.net>)
147 See doc/checksums.txt for an overview of how the new checksum system
148 works. Also keep an eye on the wiki (http://www.mogilefs.org) for more
149 complete documentation in the coming weeks.
151 2012-02-29: Release version 2.59
153 * don't make SQLite error out on lock calls (dormando <dormando@rydia.net>)
155 * Postgres wasn't honoring a no-wait timeout (dormando <dormando@rydia.net>)
157 2012-02-28: Release version 2.58
159 * reduce UPDATE's to device table (dormando <dormando@rydia.net>)
161 * replicate: retry on short writes to destination (Eric Wong <normalperson@yhbt.net>)
163 * enable TCP keepalives for accepted sockets (Eric Wong <normalperson@yhbt.net>)
165 * Populate memcache even when noverify is missing (Pyry Hakulinen <pyry@automattic.com>)
167 * Remove FID from memcache when it is deleted (Pyry Hakulinen <pyry@automattic.com>)
169 * Unset memc when memcache servers have been removed (Pyry Hakulinen <pyry@automattic.com>)
171 * Filter out illegal memcache servers from memcache_servers (Pyry Hakulinen <pyry@automattic.com>)
173 * Add skip_mkcol setting for servers which do not need it (Pyry Hakulinen <pyry@automattic.com>)
175 * skip_devcount variable that disables devcount updates (Pyry Hakulinen <pyry@automattic.com>)
177 * Back off if master DB is down (dormando <dormando@rydia.net>)
179 * use cached setting for slave list (dormando <dormando@rydia.net>)
181 * fix "fsck never stops" issue (dormando <dormando@rydia.net>)
183 2012-01-31: Release version 2.57
185 * Silence a warning about undefined value introduced by the slave database ordering work (hachi@kuiki.net)
187 * Need a hook to be able to check the slave list during startup (hachi@kuiki.net)
189 2012-01-27: Release version 2.56
191 * Add database connect timeouts (dormando <dormando@rydia.net>)
193 * fix potential hang in JobMaster added in 2.55 (dormando <dormando@rydia.net>)
195 * fix "set_weight" command (Eric Wong <normalperson@yhbt.net>)
197 * sqlite: consider SQLITE_BUSY and SQLITE_LOCKED deadlocks (Eric Wong <normalperson@yhbt.net>)
199 * kill a little more dead fsck/Checker code (dormando <dormando@rydia.net>)
201 * Destroy mogdeps (dormando <dormando@rydia.net>)
203 * improve slave handling code (dormando <dormando@rydia.net>)
205 * don't spew errors if the master goes down (dormando <dormando@rydia.net>)
207 * provide an async server setting cache via monitor worker (dormando <dormando@rydia.net>)
209 * fix return value of commands that clear_cache (Eric Wong <normalperson@yhbt.net>)
211 * make reaper wait less time in test mode (dormando <dormando@rydia.net>)
213 * queryworker: reimplement "clear_caches" command (Eric Wong <normalperson@yhbt.net>)
215 * worker: use timeout with read_from_parent() instead of sleep (Eric Wong <normalperson@yhbt.net>)
217 * Fixed issue where too many devices being active could cause the monitor job
218 to be timed out by the watchdog. (Tomas Doran)
220 2011-11-14: Release version 2.55
222 * fixed sources in replication are now a suggestion (dormando <dormando@rydia.net>)
224 * More stats to help troubleshoot rebalance (dormando <dormando@rydia.net>)
226 * return 1 from condthrow if all is well (dormando <dormando@rydia.net>)
228 * schedule fsck replications for the future. (dormando <dormando@rydia.net>)
230 * stop enforcing a source id on new file upload (dormando <dormando@rydia.net>)
232 * restore new file upload replication priority (dormando <dormando@rydia.net>)
234 * Prevent queue related MySQL query hangs (dormando <dormando@rydia.net>)
236 2011-10-29: Release version 2.54
238 * Issue 36: Further insulate from mysql restarts resetting the fid counter (dormando <dormando@rydia.net>)
240 * Allow default class to be overridden again. (dormando <dormando@rydia.net>)
242 * Fix crash in old delete worker code (Daniel Frett <daniel.frett@ccci.org>)
244 * Fix mb_free() counting empty device as missing (git.user <git.user@gmail.com>)
246 * sqlite: fix mogdbsetup failure on new setups (Eric Wong <normalperson@yhbt.net>)
248 * fid size workaround for lighttpd 1.4.x (dormando <dormando@rydia.net>)
250 * Fix various issues in the new mogilefs server query worker. (Tomas Doran <bobtfish@bobtfish.net>)
252 * Allow chunked PUT's of unlimited size (dormando <dormando@rydia.net>)
255 * Fix fsck fixing a file from logging a message which appears to be
256 two commands (due to spurious \n). Also fix debug function to
257 not be able to log messages like this.
259 2011-08-12: Release version 2.53
261 * Fix host status not updating for trackers (important)
263 2011-07-30: Release version 2.52
265 * Plugins (such as FilePaths) might want to be run in info/debug commands (Michael Baehr <mbaehr@plos.org>)
267 * schema version 14; support devices > 16TB (dormando <dormando@rydia.net>)
269 * Make FSCK worker handle dead devices (dormando <dormando@rydia.net>)
271 * Throw out old HTTPFile->size code and use LWP (dormando <dormando@rydia.net>)
273 * Remove forced loading of DBD::mysql (dormando <dormando@rydia.net>)
275 * Don't test write on readonly devices (Akzhan Abdulin <akzhan.abdulin@gmail.com>)
277 2011-06-27: Release version 2.51
279 * Add minor backcompat for ZoneLocal and friends (dormando <dormando@rydia.net>)
281 * Only monitor a device if we should monitor it. (dormando <dormando@rydia.net>)
283 2011-06-15: Release version 2.50
285 * Completely rewire meta object caches. Device/Host/Class/Domain caches are
286 now asynchronously loaded via the Monitor worker. This should drastically
287 reduce the number of small queries issued against the master database.
288 (dormando <dormando@rydia.net>)
290 * Don't run workers until Monitor runs once (dormando <dormando@rydia.net>)
292 * s/TYPE/ENGINE/ for innodb initialization (dormando <dormando@rydia.net>)
294 * Create mogile database explicitly with UTF-8 encoding. (Robin H. Johnson <robbat2@gentoo.org>)
296 * Actually use the MOGTEST_* variables for Postgres testing... (Robin H. Johnson <robbat2@gentoo.org>)
298 * Add support for config file includes for Mogstored under lighttpd (Jason Mills <jmmills@cpan.org>)
300 * Make postgres use new delete worker code (Robin H. Johnson <robbat2@gentoo.org>)
302 * New test env variables: MOGTEST_DBROOT{USER,PASS} for easier test usage. (Robin H. Johnson <robbat2@gentoo.org>)
304 * Document test variables. (Robin H. Johnson <robbat2@gentoo.org>)
306 * Support inclusion of custom lighttpd config. (Jason Mills <jmmills@cpan.org>)
308 2011-01-13: Release version 2.46
310 * Fix job_master crash under postgres (Robin H. Johnson <robbat2@gentoo.org>)
312 * Revert "only dbh->ping if not used in over a minute" (dormando <dormando@rydia.net>)
313 *IMPORTANT FIX* if you're using 2.45, you should upgrade to this.
315 * Example application. (dormando <dormando@rydia.net>)
317 * missing $fidid for source_down error message (dormando <dormando@rydia.net>)
319 2011-01-08: Release version 2.45
321 * file_debug command (dormando <dormando@rydia.net>)
323 * add "file_info" command for fetching metadata. (dormando <dormando@rydia.net>)
325 * don't allow clients to upload to the wrong dev (dormando <dormando@rydia.net>)
327 * validate database handles in the right places (dormando <dormando@rydia.net>)
329 * only dbh->ping if not used in over a minute (dormando <dormando@rydia.net>)
331 * make list_fids work with gaps (dormando <dormando@rydia.net>)
333 * Postgres enqueue_fids_* cleanup (Robin H. Johnson <robbat2@gentoo.org>)
335 * Fixes MogileFS::Store::retry_on_deadlock to honor non-deadlock exceptions (Jason Mills <jmmills@cpan.org>)
337 * Implements tests for MogileFS::Store::retry_on_deadlock (Jason Mills <jmmills@cpan.org>)
339 * Implements tests for MogileFS::Store::ignore_replace (Jason Mills <jmmills@cpan.org>)
341 * job_master was never revalidating its dbh handle. (dormando <dormando@rydia.net>)
343 * add a couple useful stats (dormando <dormando@rydia.net>)
345 * Correct iostat command on darwin (Tomas Doran <bobtfish@bobtfish.net>)
347 * Fix test db creation with SQLite (Tomas Doran <bobtfish@bobtfish.net>)
349 * Fix SQLite so tracker at least starts (Tomas Doran <bobtfish@bobtfish.net>)
351 * additional debian packaging fixes (kad <kad@blegh.net>)
353 * debian packaging updates. (Andre Bohr <andrepascha@googlemail.com>)
355 * Documentation updates. (Pyry Hakulinen <pyh@iki.fi>)
357 * 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>)
359 * some further editing of the info file. (dormando <dormando@rydia.net>)
361 * Changed repository metadata (Tomas Doran <bobtfish@bobtfish.net>)
363 2010-11-25: Release version 2.44
365 * Fix issue with rebalance not filtering source devs from the
368 * Make global rebalance limits work (Martijn Lina)
370 2010-10-10: Release version 2.43
372 * Make over-replication fixable again. (sigh)
374 * Fix old bug in MultipleHosts() which would not let you drop from
375 mindev > 1 down to 1.
377 2010-10-08: Release version 2.42
379 * Make FSCK run again (Andre Pascha)
381 * Fix Postgres schema upgrade issue (hopefully)
383 2010-10-06: Release version 2.41
385 * One line change that to fix uprading to 2.40
387 2010-09-28: Release version 2.40
389 * Optimize worker sleep patterns and worker/parent communications.
391 * New rebalance/drain code. See the docs/wiki for how to use.
392 ***NOTE*** Old drain/rebalance code is disabled. Setting a device
393 into drain mode no longer does what you think it would.
394 http://code.google.com/p/mogilefs/wiki/Rebalance
396 2010-08-13: Release version 2.37
398 * Make HTTP DELETE's work reliably
400 * Fix obscure crashes related to "unknown devices"
402 * make it slightly harder to crash trackers with bad slave DB settings
405 * make tracker -> storage node connection timeout configurable.
406 was hardcoded to 2 seconds. (Tomas Doran)
408 * update_class command (Tomas Doran)
410 2010-04-16: Release version 2.36
412 * Bump required version of perlbal for mogstored.
414 * Critical bug fix for creating files.
415 If you have many dead devices, poor filter ordering could cause
416 MogileFS to not consider any alive devices for new files.
418 * Actually default to BIGINT under MySQL...
419 Bug would always initialize new setups to INT.
421 2010-04-02: Release version 2.35
423 * Nuke ancient mogilefs 1.1 replication code.
424 no_unreachable_tracking and old_repl_compat variables are gone.
427 * Support modifying class replpolicy strings (requires new
428 mogadm/MogileFS::Client) (dormando)
430 * Print fidid and devid on errors when fsck fails to fix something
433 * Allow list_keys to work with a prefix of '0' (dormando)
435 * Print timestamp when logging to STDOUT (t0m)
437 * Sort by free space and weight fewer devices to avoid CPU churn
440 * Fix deadlock-related crash bugs in db queue fetch routines.
442 * Fix dependencies in MogileFS::Server (t0m)
444 * Fix bug in list_keys command that prevented searches with a
445 '0' prefix. (Ask Bjørn Hansen)
447 2009-12-05: Release version 2.34
449 * Fix bug in new copycount reduction code. If it was more than off by
450 one it wouldn't reduce the count properly.
452 * Improve accept loop. A reasonably busy tracker could start dropping
453 new client connections too easily.
455 2009-11-24: Release version 2.33
457 * 'mogadm fsck status' will now be more accurate.
459 * Support non-GNU df (paul armstrong)
461 * Remove old !replication command. It's in `mogadm stats` and tends
462 to kill the parent process.
464 * Force refreshing internal monitoring status every 5 minutes. Help
465 work around a potential bug where state changes are missed.
467 * Use new delete queue for tempfile culling
469 * Calculate free space from available space, not total space
472 * FSCK code has new tunables to control how aggressive it runs:
473 queue_size_for_fsck (how many fids to keep in file_to_queue table)
474 queue_rate_for_fsck (how many fids to put into the table per second)
475 the generic internal queue is now tunable:
476 internal_queue_limit (how many fids to pull out of a queue table at
477 once. old default was 500).
478 All are tunable by 'mogadm settings set'
481 * Replication will now attempt to handle over replication situations.
482 FSCK will catch over replication as a policy violation, and
483 replicate will attempt to fix it. (dormando)
484 (rarely it might need multiple fscks)
486 * Since FIDSizes is no longer used, remove it and remove gearman
487 dependency. (dormando)
489 * FSCK no longer rabidly fills the queue table. (dormando)
491 * Make storage code resilient to rare deadlocks (dormando)
493 * Add 'max_handles' config option to restart a DB connection if there
494 are too many handles to it (victori).
496 2009-10-18: Release version 2.32
498 * No changes... MFS is hard to release due to mogdeps :/
500 2009-10-18: Release version 2.31
502 * Fix create_close race condition. (pipegeek)
504 * Fix bug in reporting of available disk space.
506 * Many minor bug/documentation fixes.
508 * MySQL and Postgres installs now use BIGINT's for fid/length by
509 default. (dormando, robbat2)
511 * Accept 405 responses to MKCOL from the WebDAV server since it often
512 just means that the directory already exists. (Ask Bjørn Hansen)
514 * Fix showing domain and class in mogadm output when there's only the
515 default class in the domain (Mark Imbriaco)
517 * mogstored: pidfile support
519 * New FSCK work and error for BCNT for bad devcount values (they would
520 not otherwise be caught unless the triggered another fix).
522 2009-01-12: Release version 2.30
524 * fsck will now fix broken 'devcount' cols.
526 * schema version bump to 12, and new delete worker code to use the new
527 queue system. delete should be faster and more scalable.
529 * add server setting queue_rate_for_fsck to allow rate limiting how
530 fast the new distributed fsck creates jobs. the original default of
531 10k could utterly defeat wimpy databases.
533 * Support 0 byte files.
535 * Fix a bug where rebalance would accidentally delete copies of a fid.
537 * Create new internal queue management system, with new job
538 'JobMaster'. This greatly reduces database load and increases
539 throughput for workers using the new system.
541 * Add 'no_unreachable_tracking' config. Disables more of the old
542 replication code. Use this if you have no 1.x trackers.
544 * Add hook for alternate replication sources. Obscure, but can be
547 * Add replicate_order_final_choices hook, so multidc replication may
548 pull from the local network if one copy already exists.
550 * Fix subtle bugs in process management.
552 * Allow overriding of default classes.
554 2008-08-18: Release version 2.20
556 * One more time, and hopefully never again. No changes. META.yml
559 2008-08-18: Release version 2.19
561 * No changes except for META.yml fixes.
562 _should_ be able to upload releases without owning half of CPAN.
564 2008-08-16: Release version 2.18
566 * Add repl_use_get_port option (Brian Lynch)
568 * Remove tempfile data and rows on create_close (Chaos Wang)
570 * Don't delete files accidentally during tempfile table cleanup
572 * Specify username to run the mogstored daemon (Jonathan Share)
574 * Many spelling errors corrected.
576 * PostGres locking routines did not include the hostname for the lock
579 * RFC 2518 says we "should" use a trailing slash when calling
580 MKCOL. Some servers (nginx) appears to require it. (Spotted by
583 * Add server option 'rebalance_ignore_missing' in mogilefsd config
584 that allows the rebalance to ignore files that are already missing
585 when it tries to delete them.
587 * Fix MultipleHosts replication policy to no longer return desperate
588 devices after no longer being desperate, instead returning a state
589 which will queue for retries in the future till it can be truly
590 happy. This prevents files from being replicated to all writable
591 devs when there are two few writable hosts to satisfy the policy.
593 * Add --chmod-mountpoints option to mogautomount, in an attempt to
594 prevent mogstored machines from accidentally writing to their under-
597 * New optional argument 'startpos' to fsck_reset.
599 * Use correct per-Store port, defaulting to UNIX sockets on localhost.
601 * add --dbport option to mogdbsetup (Ask Bjoern Hansen)
603 * Fix state_change() bug that could make file_to_delete_later
604 grow unnecessarily (Radu Greab)
606 * Add Mogstored::HTTPServer::None to allow using mogstored
607 with unmanaged backend DAV servers.
609 * Add experimental cmd_edit_file. Client requires DAV MOVE and
610 partial PUT on the store to use it.
612 * make mogstored and mogilefsd use the now-bundled dependency
613 Perl modules as a last resort, unless MOGILE_NO_BUILTIN_DEPS
614 environment variable is true. this makes it easier for people
615 to use mogilefs, without dependency hell. distros/packagers
616 are expected to ignore (or scoff at) this "feature". but
617 easier for people working from tarball/svn releases. bundled
618 dependencies will be updated over time, as needed.
620 * Bring the SQLite store up to date
622 * Increase the timeouts in the test suite
624 * In the test suite, also search for mogadm in /usr/local/bin/ and
625 /usr/local/sbin (spotted by Dean Wilson)
627 * SCHEMA VERSION 10: 'replpolicy' column on 'class' table.
628 it's safe to --ignore-schema-version and run this mogilefsd
629 against an older schema. new column enables per-class
630 pluggable replication policies. it was always
631 abstract, but not easy to plugin your own alternatives.
632 see doc/pluggable-replication-policies.txt
634 * add start of a MogileFS::ReplicationPolicy::Union implementation
636 * fix crash in queryworker's create_open command, when a device
637 has its directory made on a mogile storage node (the host of
638 which is being monitored by the 'monitor' process), but the
639 device isn't registered in the devices table yet.
641 2007-07-03: Release version 2.17
643 * get_paths command now takes a pathcount option, defaulting to
644 2, instead of having a hardcoded constant of 2. This allows
645 requesting more than 2 paths to a file.
647 * make fsck log over-replicated files as policy violations. it
648 won't delete over-replicated files, though, just log
650 * Document how to test MogileFS under doc/testing.txt. You really
651 should read this if you want to use MogileFS to store your data.
653 * Add a safety check to ensure that Postgresql-8.2 or newer is used.
655 * Update mogdbsetup usage, and ensure it chooses the correct admin
656 username automatically.
658 * Document the --type option to mogdbsetup.
660 * Introduce the PostGres Store implementation. The locking system might
661 still have issues, beware of stale locks! Initial prototype by Radu
662 Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson
663 <robbat2@gentoo.org>.
665 * start of support to make mogstored wrap Apache + web_dav
667 * Remove duplicated [fsck] in log output of Fsck worker.
669 * Handle HiRes gettimeofday correctly to get useful results. Arrays are
670 important. This gives us correct timing output.
672 * Handle input to log() correctly. Based on the implementation of
673 Sys::Syslog::syslog(), produces no ugly warnings, and makes sure that
674 printf stuff works nicely.
676 * The unix_timestamp function belongs to the Store, not other classes.
677 Need to add test cases for process_deletes and stats.
679 * Using NULL during an INSERT for the AUTO_INCREMENT column does not
680 work very well outside of MySQL. Pass the correct number of arguments
681 to the INSERT instead.
683 * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation
684 for database independence. If you need the unix timestamp, include the output
685 of $self->unix_timestamp directly into your query.
687 * Alter $0 so that the scripts show up as '$SCRIPTNAME' in the process
688 listing instead of '/usr/bin/perl $SCRIPTNAME'. This makes init.d
689 scripts easier to manage.
691 * make mogstored's lighttpd config use mod_status for "/", so
692 mogadm doesn't think it's dead when it previously saw a 404
693 (Justin Huff <jjhuff@mspin.net>)
695 * remove Linux::AIO support, now that Perlbal has removed it as well,
696 and because Linux::AIO support (when Perlbal then chooses
697 IO::AIO) was hanging mogstored on shutdown. so also add a
698 mogstored shutdown test (after a full daemonization of it)
700 * make Mgd::validate_dbh() re-check/ping slave dbhs as well.
701 (problem mentioned by Steven Shou <steven.shou@verizon.net>)
703 * support drive identifiers above sdz (Arjan <info@bouncetek.com>)
705 * make mogstored's iostat child process properly shutdown,
706 even when iostat binary isn't installed. (previously
707 it was stuck in a loop every 10 seconds, hoping for
708 iostat to be installed, but never respecting parent
711 * Change delete worker to use new DeviceStates interface.
713 * Fix get_paths to honor new device state of 'drain' via new
714 DeviceStates interface.
716 * use significantly less CPU when re-broadcasting around
717 iostat device utilization% to child processes. (future:
718 don't rebroadcast at all and use shared memory)
720 * slightly faster fsck (do less syscalls)
722 * efficiency: don't broadcast dup state information to children
723 (track in parent what children know already)
725 * if using Gearman::Server >= 1.09, respawn the fidsizes
728 2007-05-09: Release version 2.16
730 * BUG FIX from 2.15: partially written but never closed
731 tempfiles weren't being cleaned up properly.
733 * start to work better when compiled as a stand-alone
734 PAR all-in-one script/archive
736 2007-05-07: Release version 2.15 ("fsck/drain/rebalance")
738 * minor bug fixes and enhancements for MultipleHosts replication
739 policy. bunch of corner cases now checked with new tests.
740 now easy to write more replication policy tests in future.
742 * replication policies can now return "desperate" requests,
743 signalling that a replication reassessment should be
744 enqueued for the future, to see if things could be improved.
745 (that part's not currently implemented, but the real feature
746 and motivation is that the rebalancer now won't delete a
747 DevFID if it results in a desperate move, only an ideal move. )
749 * replication policies now can optionally return a new return
750 value of the (new) type MogileFS::ReplicationRequest, which
751 has pretty accessor names, can suggest multiple places,
752 can indicate non-ideal emergency replication decisions.
753 old plugins' return values will be transparently upgraded
754 to the equivalent new return value objects.
756 * adding new device state: "drain". it's a hybrid of "dead"
757 (in that files are migrated off it) and "readonly", it that
758 it still serves traffic... it just doesn't get new files.
759 this also introduces the new object-oriented DeviceState class,
760 and device_state($name) utility function to get the DeviceState
763 * internal code cleanup. notably, kill the old & nasty legacy
764 'find_deviceid' function which was ridiculously long and hairy.
765 the two callers are now more readable with sorts/greps/etc.
767 * make mogstored's devN/usage writing process (DiskUsage) be less
768 racy with the mogilefsd monitoring code... don't open file for
769 write... open read/write, then in one write system call, write
770 the entire file, with newline padding at end to cover old data,
771 then truncate it if necessary. should remove harmless (but scary)
772 error messages previously reported by the mogilefsd monitor
773 about zero-length usage files.
775 * new protocol commands to list/set (certain) server settings,
776 with value sanity checking (see MogileFS::Config for which
777 are settable, and with what values). needed for "enable_rebalance".
778 was partially enabled before for slave settings. also needed
779 for memcached support before, which was never possible to
780 set with mogadm, only with db tweaking.
782 * make mogilefsd fsck use new mogstored fid_sizes command, to
783 do bulk stats. speeds up fscks a ton.
785 * be robust against system clocks that go backwards between
787 http://lists.danga.com/pipermail/mogilefs/2007-April/000897.html
789 * Put gearman server in mogstored process, add worker
790 'mogstored-fidsizes' which runs as subprocess of mogstored. Add
791 side-channel command 'fid_sizes' which allows us to quickly enumerate
792 and get sizes for files across entire devices on a storage node.
794 * remove all code like $state eq "readonly", $state=~ /^dead|down$/
795 and instead convert it into specific questions on policy/traits
796 of given state, like $dev->should_put_new_files_on, or
797 $dev->should_drain_files_off. see MogileFS::DeviceState,
798 objects of which are accessed via $dev->dstate, or new
799 MogileFS::Util device_state($name) wrapper.
801 * start of rebalance support. (where replication workers, in their
802 idle time, can rearrange files to even out disk space and/or IO
803 activity on storage nodes... policy isn't hard-coded, and is
804 in fact currently random)
806 * lighttpd support in both mogilefsd and mogstored. passes test
807 suite with environment MOGSTORED_SERVER_TYPE=lighttpd set now.
809 * abstract out the HTTP server support in mogstored, so
810 mogstored isn't just a perlbal wrapper, but an anything
811 wrapper. (in particular, lighttpd and apache) mogstored still
812 exists for all its other misc admin/monitoring functions,
813 but can then manage/configure apache/lighttpd child process(es).
814 so far they're just stubbed out.
816 * split mogstored into separate files per class, rather than one
819 2007-04-24: Release version 2.10
821 * bug from earlier refactoring: changing some 'next' to 'return'
822 in MogileFS::Device's create_directory method. (thanks to
823 Justin Huff <jjhuff@mspin.net>)
825 * make sure mogdbsetup doesn't upgrade an existing table (with
826 potentially lot of data) from MyISAM to InnoDB. just warn.
827 only new tables should become InnoDB on creation. also,
828 detect InnoDB even on old MySQL 4.0.x, not just 4.1/5.0.
830 * make fsck faster by reducing number of db queries (both
831 reads and writes), though more unrelated fastness remains to
834 * make fsck_status faster (keep summary stats of evcode counts,
835 rather than doing a full GROUP BY query all the time)
837 2007-04-20: Release version 2.09
839 * filesystem checker (Fsck worker). off by default, unless
840 it's enabled via protocol. Control/monitor it with mogadm
841 in MogileFS-Utils 2.08, which needs MogileFS::Client 1.06.
843 * replication speed-up on configurations with only 1 host.
844 (replication would randomly have no suggestions before, when
845 there was only 1 target host, so replication would be rescheduled
846 until the future, when random returned a different device on
849 2007-04-17: Release version 2.08
851 * (no runtime-visible changes from 2.07)
853 * mogilefsd: remove incomplete "Checker" worker, replace with
854 incomplete "Fsck" worker.
856 * test cleanup/robustness improvements. properly skips testing when
857 testing deps not found. but searches harder for them now, too.
858 tests run under "make disttest".
860 * packaging cleanups, released using ShipIt.
865 * mogilefsd: Split Plugin::MetaData and Plugin::FilePaths into their own distributions.
867 * mogilefsd: Fix mogdbsetup to not ask empty questions.
869 * mogilefsd: command line/config file support for listening on specific IPs, also
870 support for listening on multiple IPs/ports
873 * mogstored: use XS HTTPHeaders by default, unless disabled with environment variable
875 * mogilefsd: memcache support for get_paths (see doc/memcache-support.txt)
878 * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting
879 Perlbal, Linux::AIO/IO::AIO, etc baggage). so they don't own listening
880 sockets, pipes to child workers, signal handlers, etc. just a lot
881 cleaner now, and SIGTERM, SIGINT properly shut everything down now,
882 both in foreground and as daemon
885 * mogstored: this changelog is totally neglected. :/ see svn log.
887 * mogstored: make perlbal's "shutdown graceful" work, by not doing
888 sidechannel accepting ourselves (which never hung up),
889 but subclass Perlbal's TCPListener class, which does it
892 2006-12/2007-01: (2.00_05)
893 * mogilefsd: everything converted to OO API internally. old internal APIs removed.
895 * mogilefsd: be database-agnostic. Currently only works with MySQL (and
896 SQLite as a joke/demo), but Pg/Oracle coming in the future.
898 * mogilefsd: built-in I/O activity monitoring between mogstored/mogilefsd Monitor
901 * mogilefsd: much improved internal communication between worker processes
903 * mogilefsd: start of better docs
906 * mogilefsd: pidfile support (Radu Greab <radu@yx.ro>)
910 * mogilefsd: remove all old internal APIs, update everything to use new OO APIs,
911 expanding OO APIs where necessary (lots of places). so much more
912 beautifully hackable now.
914 * mogstored: kill child processes (diskusage and iostat) when being killed.
917 * mogstored: set aio threads after daemonizing. needed by Linux::AIO/IO::AIO, it seems?
920 * mogilefsd: remove non-HTTP mode ("NFS mode") from the server
923 * mogstored: refuse to start up with missing Linux::AIO/IO::AIO or broken Linux::AIO
926 * mogstored: set aio_threads as a function of number of disks
929 * mogilefsd: major refactoring/cleanup/new features ("MogileFS 2.0")
932 * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the
933 server is restarted while the tempfile table is empty.
936 * mogilefsd: allow create_open to take optional fid parameter which enables you to
937 dictate which fid to use internally and to not rely on MySQL's auto_increment
940 * mogilefsd: make Mgd::get_device_summary() always return all devices, regardless
943 * mogilefsd: update all callers of get_device_summary to filter on the device
944 status, if they need to. (provided more clarity into what
945 callers' intentions were...)
947 * mogilefsd: add a new device state 'readonly' which means: it can be read from
948 from clients, it can be replicated from, but no new files can go
949 on it or be replicated onto it. and it also reaps, meaning the
950 device is fucked. the filesystem probably ate itself.
953 * mogstored: write out usage files for devices, even if they're not on their own mount point.
954 also explicitly include the '-k' flag to df, so we know they're KiB.
957 * mogstored: new config syntax and command line options