Commit Graph

248 Commits

Author SHA1 Message Date
Eliot Horowitz
673475764e limit number of concurrent splitVectors SERVER-4296 2011-11-16 15:40:58 -05:00
gregs
5b782c8ced add compatibleWith api to chunkmanager SERVER-4220 2011-11-09 10:57:30 -05:00
Eliot Horowitz
280710fd1b Revert "when splitting chunk thas has a max inf edge, don't leave a chunk bigger than max chunk size"
This reverts commit 41e5ee7a2f.
2011-11-01 18:04:34 -04:00
Eliot Horowitz
6934c1fa04 better chunking at beginning 2011-11-01 17:33:19 -04:00
gregs
72e20613b6 buildbot auto2.js log shouldMigrate and allow waiting for balancer 2011-11-01 10:12:11 -04:00
Eliot Horowitz
41e5ee7a2f when splitting chunk thas has a max inf edge, don't leave a chunk bigger than max chunk size 2011-11-01 00:56:17 -04:00
Eliot Horowitz
5f7feee66c SERVER-3842 - make all initial chunks before marking collection sharded 2011-10-22 11:54:32 -04:00
gregs
f93918db8e test and fix for zero-version being sent to unneeded shards during scatter/gather 2011-10-20 13:31:18 -04:00
Brandon Diamond
5695e02c16 tweak logging during chunksize refresh 2011-10-17 12:11:43 -04:00
Brandon Diamond
c9ad86209d facility for refreshing chunksize on demand 2011-10-17 12:11:43 -04:00
Dwight
8f19eec99d minor unrefd local variable 2011-09-26 12:46:23 -04:00
Eliot Horowitz
357f336ff9 if a chunk is too big to migrate, mark it as jumbo and move on SERVER-2571 2011-09-21 21:14:55 -04:00
Mathias Stearn
0e20be567e use LOG(x) everywhere in mongos 2011-08-08 19:52:56 -04:00
Mathias Stearn
c69a6247ed fast-path for ShardKey::extractFields to create less garbage if already in key form 2011-08-08 19:52:56 -04:00
Eliot Horowitz
f444ceb0ca more checking to not reload ChunkManager so much 2011-06-29 01:08:32 -04:00
Eliot Horowitz
2aa64fb929 less thrashing when config changes 2011-06-29 00:49:30 -04:00
Eliot
0d4db0b5b0 Merge pull request #40 from JensRantil/master
Spelling and grammar corrections only
2011-06-15 19:53:25 -07:00
Eliot Horowitz
8561e862e3 some logging in chunk.cpp for chunk cloading 2011-06-06 12:02:14 -04:00
Jens Rantil
2c8088f180 Fixing a bunch of spelling mistakes, and a few grammatical errors. No functionality has been changed. 2011-05-26 11:59:13 +02:00
dwight
8a0660ac31 use firstElementFieldName() 2011-05-23 20:03:19 -04:00
Eliot Horowitz
73209450a2 more comments 2011-05-19 11:22:01 -04:00
Eliot Horowitz
4f9ae84652 prep for multiplexing connections between mongos and mongod more effectively 2011-05-18 17:36:55 -04:00
Mathias Stearn
2758a8bac0 Don't migrate high/low chunk while balancer is disabled SERVER-3070 2011-05-09 15:02:39 -04:00
Mathias Stearn
8e216ef190 Don't need to lock in ChunkManager anymore except for distlock in drop() 2011-05-06 19:01:04 -04:00
Mathias Stearn
bb0873d14c All members of ChunkManager are now const (except for mutable locks) 2011-05-06 19:01:04 -04:00
Mathias Stearn
24cd932f3e Make ChunkManager::_load and _isValid use passed-in maps 2011-05-06 19:01:04 -04:00
Mathias Stearn
e15ca90662 Don't need reloadRange anymore 2011-05-06 19:01:04 -04:00
Mathias Stearn
50a0115bd2 ChunkManager::createFirstChunk shouldn't modify this 2011-05-06 19:01:03 -04:00
Mathias Stearn
708f76bc60 Move Chunk::unserialize into constructor 2011-05-06 19:01:03 -04:00
Mathias Stearn
71f5dd3d5e remove no-op test. Necessary for but separate from next commit 2011-05-06 19:01:03 -04:00
Mathias Stearn
28e399333b Remove support for pre 1.6 chunk format 2011-05-06 19:01:03 -04:00
Mathias Stearn
596d71e61d set _dataWritten in initializer 2011-05-06 19:01:03 -04:00
Mathias Stearn
d9e87d1099 make almost all public Chunk and ChunkManager methods const 2011-05-06 19:01:03 -04:00
Mathias Stearn
6ccfff789a inline and remove _reload_in_lock 2011-05-06 19:01:03 -04:00
Mathias Stearn
7cf37b75c3 Don't use _reload_inlock here 2011-05-06 19:01:03 -04:00
Mathias Stearn
fafe6cb761 ChunkManger::reload() helper 2011-05-06 19:01:03 -04:00
Mathias Stearn
80d6f91f19 Don't return Chunk up stack after ChunkMangagerPtr goes out of scope 2011-05-05 22:52:10 -04:00
Mathias Stearn
791717764d Move chunk obj counting into mongod.
Was segfaulting because newChunk->_master could become dangling
2011-05-05 22:52:10 -04:00
Eliot Horowitz
f3eaa8b804 remove _reload 2011-05-05 18:01:37 -04:00
Eliot Horowitz
dbe76163c5 don't update your own config on a split 2011-05-05 18:01:37 -04:00
Eliot Horowitz
d41794452a cleaning moveIfShould 2011-05-05 18:01:37 -04:00
Aaron
ddd7dd323d rename FieldRangeOrSet to OrRangeGenerator 2011-05-02 10:33:52 -07:00
Eliot Horowitz
42942893e1 remove some overly verbose debugging 2011-04-25 23:53:23 -04:00
Aaron
a227326132 SERVER-958 Track non single key field ranges and utilize them in query planning 2011-04-25 13:29:50 -07:00
Mathias Stearn
e8ab9155c4 don't call _reload_inlock while not locked 2011-04-18 19:24:49 -04:00
Eliot Horowitz
138040ccc0 not checking msgasserted for dupes 2011-04-15 13:39:47 -04:00
gregs
301376410c conversion of unneeded caused_by macros to methods 2011-04-01 09:45:10 -04:00
Eliot Horowitz
bf7de73165 SERVER-2797 fix BTreeCursor handling and ensure chunks aren't over sized 2011-03-19 15:49:22 -04:00
greg
737a20b8fa Fixes for distributed lock handling time skew.
In general, the current distributed lock is susceptible to time skew in config servers and mongos clients.  This update
uses an algorithm that checks for time skew, as well as providing some more robust tests to make sure a distributed
lock cannot be forced prematurely.  Some documentation on the website, currently hidden from non-10gen, gives more
info.
2011-03-01 14:15:26 -05:00
Kristina Chodorow
a9e3511eda increase number of initial chunk splits allowed to fit 256GB of data SERVER-2271 2011-02-18 16:38:51 -05:00