Ticket #1092: 1092.dpatch

File 1092.dpatch, 8.3 KB (added by kevan, at 2010-12-23T06:45:52Z)
Line 
1Wed Dec 22 07:21:14 PST 2010  Kevan Carstensen <kevan@isnotajoke.com>
2  * immutable: change 'shares.happy' to 'servers.happy'; change the default value of 'servers.happy' to 1 from 7
3
4New patches:
5
6[immutable: change 'shares.happy' to 'servers.happy'; change the default value of 'servers.happy' to 1 from 7
7Kevan Carstensen <kevan@isnotajoke.com>**20101222152114
8 Ignore-this: 9cf9d95f3d50c79cd97d53ecbc77ccfd
9] {
10hunk ./docs/configuration.rst 282
11 
12 ``shares.total = (int, optional) aka "N", N >= k, default 10``
13 
14-``shares.happy = (int, optional) 1 <= happy <= N, default 7``
15+``servers.happy = (int, optional) 1 <= happy <= N, default 1``
16 
17     These three values set the default encoding parameters. Each time a new
18     file is uploaded, erasure-coding is used to break the ciphertext into
19hunk ./docs/configuration.rst 308
20     ``N`` cannot be larger than 256, because of the 8-bit erasure-coding
21     algorithm that Tahoe-LAFS uses.
22 
23-    ``shares.happy`` allows you control over the distribution of your immutable
24+    ``servers.happy`` allows you control over the distribution of your immutable
25     file. For a successful upload, shares are guaranteed to be initially
26hunk ./docs/configuration.rst 310
27-    placed on at least ``shares.happy`` distinct servers, the correct
28+    placed on at least ``servers.happy`` distinct servers, the correct
29     functioning of any ``k`` of which is sufficient to guarantee the availability
30     of the uploaded file. This value should not be larger than the number of
31     servers on your grid.
32hunk ./docs/configuration.rst 315
33 
34-    A value of ``shares.happy`` <= ``k`` is allowed, but does not provide any
35+    A value of ``servers.happy`` <= ``k`` is allowed, but does not provide any
36     redundancy if some servers fail or lose shares.
37 
38     (Mutable files use a different share placement algorithm that does not
39hunk ./docs/running.html 68
40     clients to connect to your node if it is behind a firewall or NAT device.
41 
42 
43-    <h3>A note about small grids</h3>
44-
45-    <p>By default, Tahoe-LAFS ships with the configuration parameter
46-    <code>shares.happy</code> set to 7. If you are using Tahoe-LAFS on a
47-    grid with fewer than 7 storage nodes, this won't work well for you
48-    &mdash; none of your uploads will succeed. To fix this, see <a
49-    href='configuration.rst'>configuration.rst</a> to learn how to set
50-    <code>shares.happy</code> to a more suitable value for your
51-    grid.</p>
52-
53-
54     <h2>Do Stuff With It</h2>
55 
56     <p>This is how to use your Tahoe-LAFS node.</p>
57hunk ./src/allmydata/client.py 127
58     # this many. 'total' is the total number of shares created by encoding.
59     # If everybody has room then this is is how many we will upload.
60     DEFAULT_ENCODING_PARAMETERS = {"k": 3,
61-                                   "happy": 7,
62+                                   "happy": 1,
63                                    "n": 10,
64                                    "max_segment_size": 128*KiB,
65                                    }
66hunk ./src/allmydata/client.py 288
67         DEP = self.DEFAULT_ENCODING_PARAMETERS
68         DEP["k"] = int(self.get_config("client", "shares.needed", DEP["k"]))
69         DEP["n"] = int(self.get_config("client", "shares.total", DEP["n"]))
70-        DEP["happy"] = int(self.get_config("client", "shares.happy", DEP["happy"]))
71+        DEP["happy"] = int(self.get_config("client", "servers.happy", DEP["happy"]))
72 
73         self.init_client_storage_broker()
74         self.history = History(self.stats_provider)
75hunk ./src/allmydata/scripts/create_node.py 120
76     c.write("#key_generator.furl =\n")
77     c.write("#stats_gatherer.furl =\n")
78     c.write("#shares.needed = 3\n")
79-    c.write("#shares.happy = 7\n")
80+    c.write("#servers.happy = 1\n")
81     c.write("#shares.total = 10\n")
82     c.write("\n")
83 
84}
85
86Context:
87
88[docs/architecture.rst: correct rst syntax.
89david-sarah@jacaranda.org**20101212202003
90 Ignore-this: 3fbe12feb28bec6f1c63aedbc79aad21
91] 
92[docs/architecture.rst: formatting.
93david-sarah@jacaranda.org**20101212201719
94 Ignore-this: 305fa5dfc2939355eaf6d0d2161eb1ff
95] 
96[docs: linkification, wording improvements.
97david-sarah@jacaranda.org**20101212201234
98 Ignore-this: 4e67287f527a8bc728cfbd93255d2aae
99] 
100[docs: formatting.
101david-sarah@jacaranda.org**20101212201115
102 Ignore-this: 2e0ed394ac7726651d3a4f2c4b0d3798
103] 
104[docs/configuration.rst: more formatting tweaks; which -> that.
105david-sarah@jacaranda.org**20101212195522
106 Ignore-this: a7becb7021854ca5a90edd892b36fdd7
107] 
108[docs/configuration.rst: more changes to formatting.
109david-sarah@jacaranda.org**20101212194511
110 Ignore-this: 491aac33e5f5268d224359f1447d10be
111] 
112[docs/configuration.rst: changes to formatting (mainly putting commands and filenames in monospace).
113david-sarah@jacaranda.org**20101212181828
114 Ignore-this: 8a1480e2d5f43bee678476424615b50f
115] 
116[scripts/backupdb.py: more accurate comment about path field.
117david-sarah@jacaranda.org**20101212170320
118 Ignore-this: 50e47a2228a85207bbcd188a78a0d4e6
119] 
120[scripts/cli.py: fix missing 'put' in usage example for 'tahoe put'.
121david-sarah@jacaranda.org**20101212170207
122 Ignore-this: 2cbadf066fff611fc03d3c0ff97ce6ec
123] 
124[docs/frontends/CLI.rst: changes to formatting (mainly putting commands and filenames in monospace), and to command syntax to reflect that DIRCAP/... is accepted. Clarify the syntax of 'tahoe put' and other minor corrections. Tahoe -> Tahoe-LAFS.
125david-sarah@jacaranda.org**20101212165800
126 Ignore-this: a123ef6b564aa8624d1e79c97068ea12
127] 
128[docs/frontends/CLI.rst: Unicode arguments to 'tahoe' work on Windows as of v1.7.1.
129david-sarah@jacaranda.org**20101212063740
130 Ignore-this: 3977a99dfa86ac33a44171deaf43aaab
131] 
132[docs/known_issues.rst: fix title and linkify another URL. refs #1225
133david-sarah@jacaranda.org**20101212062817
134 Ignore-this: cc91287f7fb51c23440b3d2fe79c449c
135] 
136[docs/known_issues.rst: fix an external link. refs #1225
137david-sarah@jacaranda.org**20101212062435
138 Ignore-this: b8cbf12f353131756c358965c48060ec
139] 
140[Fix a link from uri.rst to dirnodes.rst. refs #1225
141david-sarah@jacaranda.org**20101212054502
142 Ignore-this: af6205299f5c9a33229cab259c00f9d5
143] 
144[Fix a link from webapi.rst to FTP-and-SFTP.rst. refs #1225
145david-sarah@jacaranda.org**20101212053435
146 Ignore-this: 2b9f88678c3447ea860d6b61e8799858
147] 
148[More specific hyperlink to architecture.rst from helper.rst. refs #1225
149david-sarah@jacaranda.org**20101212052607
150 Ignore-this: 50424c768fca481252fabf58424852dc
151] 
152[Update hyperlinks between docs, and linkify some external references. refs #1225
153david-sarah@jacaranda.org**20101212051459
154 Ignore-this: cd43a4c3d3de1f832abfa88d5fc4ace1
155] 
156[docs/specifications/dirnodes.rst: fix references to mutable.rst. refs #1225
157david-sarah@jacaranda.org**20101212012720
158 Ignore-this: 6819b4b4e06e947ee48b365e840db37d
159] 
160[docs/specifications/mutable.rst: correct the magic string for v1 mutable containers. refs #1225
161david-sarah@jacaranda.org**20101212011400
162 Ignore-this: 99a5fcdd40cef83dbb08f323f6cdaaca
163] 
164[Move .txt files in docs/frontends and docs/specifications to .rst. refs #1225
165david-sarah@jacaranda.org**20101212010251
166 Ignore-this: 8796d35d928370f7dc6ad2dafdc1c0fe
167] 
168[Convert docs/frontends and docs/specifications to reStructuredText format (not including file moves).
169david-sarah@jacaranda.org**20101212004632
170 Ignore-this: e3ceb2d832d73875abe48624ddbb5622
171] 
172[scripts/cli.py: remove the disclaimer in the help for 'tahoe cp' that it does not handle non-ASCII filenames well. (At least, we intend to handle them.)
173david-sarah@jacaranda.org**20101130002145
174 Ignore-this: 94c003efaa20b9eb4a83503d79844ca
175] 
176[relnotes.txt: fifth -> sixth labor-of-love release
177zooko@zooko.com**20101129045647
178 Ignore-this: 21c245015268b38916e3a138d256c09d
179] 
180[Makefile: BB_BRANCH is set to the empty string for trunk, not the string 'trunk'.
181david-sarah@jacaranda.org**20101128233512
182 Ignore-this: 5a7ef8eb10475636d21b91e25b56c369
183] 
184[relnotes.txt: eleventh -> twelfth release.
185david-sarah@jacaranda.org**20101128223321
186 Ignore-this: 1e26410156a665271c1170803dea2c0d
187] 
188[relnotes.tst: point to known_issues.rst, not known_issues.txt.
189david-sarah@jacaranda.org**20101128222918
190 Ignore-this: 60194eb4544cac446fe4f60b3e34b887
191] 
192[quickstart.html: fix link to point to allmydata-tahoe-1.8.1.zip.
193david-sarah@jacaranda.org**20101128221728
194 Ignore-this: 7b3ee86f8256aa12f5d862f689f3ee29
195] 
196[TAG allmydata-tahoe-1.8.1
197david-sarah@jacaranda.org**20101128212336
198 Ignore-this: 9c18bdeaef4822f590d2a0d879e00621
199] 
200Patch bundle hash:
201cf95bacbc58d8601db8a29cf918e1f55260fdbb1