diff options
author | Benjamin Bouvier <public@benj.me> | 2018-01-06 18:10:30 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-06 18:10:30 +0100 |
commit | e755a63a1baaa1ddc94abd7f26f6708e8cb869a9 (patch) | |
tree | 7de65176b84d64c4245b4c2903b27b25362155de /FAQ.md | |
parent | 99eff32c0058dd7de3d2d5ad46050588d758649c (diff) | |
download | PeerTube-e755a63a1baaa1ddc94abd7f26f6708e8cb869a9.tar.gz PeerTube-e755a63a1baaa1ddc94abd7f26f6708e8cb869a9.tar.zst PeerTube-e755a63a1baaa1ddc94abd7f26f6708e8cb869a9.zip |
Reword docs (#176)
* Reword documentation;
* Wrap lines at 80 characters in the documentation.
* Wrap CONTRIBUTING.md too;
* Tweaks to CONTRIBUTING.md wording;
* Move development section to CONTRIBUTING.md;
* Explain database creation in CONTRIBUTING.md;
Diffstat (limited to 'FAQ.md')
-rw-r--r-- | FAQ.md | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -2,25 +2,31 @@ | |||
2 | 2 | ||
3 | ## If nobody watches a video, is it seeded? | 3 | ## If nobody watches a video, is it seeded? |
4 | 4 | ||
5 | Yes, the origin server always seeds videos uploaded on it through [Webseed](http://www.bittorrent.org/beps/bep_0019.html). | 5 | Yes, the origin server always seeds videos uploaded on it thanks to |
6 | [Webseed](http://www.bittorrent.org/beps/bep_0019.html). | ||
6 | 7 | ||
7 | 8 | ||
8 | ## What is WebSeed? | 9 | ## What is WebSeed? |
9 | 10 | ||
10 | It is a BitTorrent extension that allow a server to seed a file through HTTP. It just need to serve statically a file, and then the clients will request chunks with a Content-Range HTTP header. | 11 | It is a BitTorrent extension that allows a server to seed a file through HTTP. |
12 | It just needs to statically serve a file, then the clients will request chunks | ||
13 | with a `Content-Range` HTTP header. | ||
11 | 14 | ||
12 | 15 | ||
13 | ## If a client requests each chunk of a video through HTTP, the server be overloaded! | 16 | ## If a client requests each chunk of a video through HTTP, will the server be overloaded? |
14 | 17 | ||
15 | Not really. Reverse proxies like Nginx handle very well requests of static files. In my tests it can send chunks at 10MB/s without consuming more than 5% of CPU on a very small VPS. | 18 | Not really. Reverse proxies like Nginx handle very well requests of static |
19 | files. In my tests, it can send chunks at 10MB/s without consuming more than 5% | ||
20 | of CPU on a very small VPS. | ||
16 | 21 | ||
17 | 22 | ||
18 | ## An index of all videos of servers you follow won't be too large for small servers? | 23 | ## Will an index of all the videos of servers you follow be too large for small servers? |
19 | 24 | ||
20 | No, 1000000 videos will represent around 2GB on PostgreSQL. It is acceptable for a video platform. | 25 | In our benchmarks, 1,000,000 videos takes around 2GB of storage on PostgreSQL. |
26 | We think it is acceptable for a video platform. | ||
21 | 27 | ||
22 | 28 | ||
23 | ## What kind of videos can I upload? | 29 | ## What codecs can I use for the videos I want to upload? |
24 | 30 | ||
25 | WEBM, MP4 or OGV videos. | 31 | WEBM, MP4 or OGV videos. |
26 | 32 | ||
@@ -29,4 +35,5 @@ WEBM, MP4 or OGV videos. | |||
29 | 35 | ||
30 | If you already have followers, you can't. | 36 | If you already have followers, you can't. |
31 | 37 | ||
32 | If you don't: update your configuration and run `NODE_ENV=production npm run update-host` to update the torrent files. | 38 | If you don't have any followers, update your configuration and run |
39 | `NODE_ENV=production npm run update-host` to update the torrent files. | ||