]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - FAQ.md
Update changelog
[github/Chocobozzz/PeerTube.git] / FAQ.md
CommitLineData
3266ad7c
C
1# FAQ
2
343ad675 3## If nobody watches a video, is it seeded?
3266ad7c 4
e755a63a
BB
5Yes, the origin server always seeds videos uploaded on it thanks to
6[Webseed](http://www.bittorrent.org/beps/bep_0019.html).
3266ad7c
C
7
8
9## What is WebSeed?
10
e755a63a
BB
11It is a BitTorrent extension that allows a server to seed a file through HTTP.
12It just needs to statically serve a file, then the clients will request chunks
13with a `Content-Range` HTTP header.
3266ad7c
C
14
15
e755a63a 16## If a client requests each chunk of a video through HTTP, will the server be overloaded?
3266ad7c 17
e755a63a
BB
18Not really. Reverse proxies like Nginx handle very well requests of static
19files. In my tests, it can send chunks at 10MB/s without consuming more than 5%
20of CPU on a very small VPS.
3266ad7c
C
21
22
e755a63a 23## Will an index of all the videos of servers you follow be too large for small servers?
3266ad7c 24
e755a63a
BB
25In our benchmarks, 1,000,000 videos takes around 2GB of storage on PostgreSQL.
26We think it is acceptable for a video platform.
3266ad7c
C
27
28
e755a63a 29## What codecs can I use for the videos I want to upload?
3266ad7c
C
30
31WEBM, MP4 or OGV videos.
32
33
63bfad7e 34## I want to change my host, how can I do that?
3266ad7c 35
fcaf1e0a
C
36If you already have followers, you can't.
37
e755a63a 38If you don't have any followers, update your configuration and run
63bfad7e 39`NODE_ENV=production npm run update-host` to update the torrent files (they contain your domain name).
588d837c
C
40
41
42## Should I have a big server to run PeerTube?
43
44Not really. For instance, the demonstration server [https://peertube.cpy.re](https://peertube.cpy.re) has 2 vCore and 2GB of RAM and consumes on average:
45 * **CPU** -> nginx ~ 20%, peertube ~ 10%, postgres ~ 1%, redis ~ 3%
46 * **RAM** -> nginx ~ 6MB, peertube ~ 120MB, postgres ~ 10MB, redis ~ 5MB
47
48So you would need:
49 * **CPU** 1 core if you don't enable transcoding, 2 at least if you enable it
50 * **RAM** 1GB
51 * **Storage** Completely depends on how many videos your users will upload
52