============================= Megaplex - Custom Plex Server ============================= As part of :doc:`my plan to cut cable <../../plans/cuttingthecable>` I built a custom server specifically for hosting :doc:`Plex <../../software/serve/plex>` and handling hardcore HD video processing/transcoding - something for which the :doc:`Synology ` isn't quite as well suited. Research ======== `Plex has some recommendations on what sort of CPU you need to accomplish transcoding `_. Using a separate server to do the video processing and leaving the content stored on a NAS is something `several folks have working well `_. There is a benchmark called "Passmark" that helps guide what sort of CPU might fit the bill. The rough guideline is that if we want HD content, we need to multiply 2000 (the benchmark required for a single stream) by the number of streams we might have (say, 2 or 4). For me, I figured four streams would be enough to future-proof things for a while, so I wanted a CPU with Passmark of ~8000. **I ended up choosing an AMD FX-8350 processor with a Passmark of 8988** and `a pretty good price-to-performance ratio `_. Parts ===== I wanted to stay in a reasonable budget with it - I'm not gaming with it, so a huge video card isn't going to help, for example. The parts I used to build the server (prices listed as of March 2015): - `AMD FD8350FRHKBOX FX-8350 FX-Series 8-Core Black Edition Processor - $169.99 `_ (`AMD specs here `_) - `Gigabyte AM3+ AMD DDR3 1333 760G HDMI USB 3.0 Micro ATX Motherboard GA-78LMT-USB3 - $58.99 `_ - `Rosewill Dual Fans MicroATX Mini Tower Computer Case, Black FBM-02 - $29.99 `_ - `Antec EarthWatts EA-380D Green 380 Watt 80 PLUS BRONZE Power Supply - $40.01 `_ - `Crucial Ballistix Sport 8GB Kit (4GBx2) DDR3 1600 MT/s (PC3-12800) CL9 @1.5V UDIMM 240-Pin Memory BLS2KIT4G3D1609DS1S00 - $59.99 `_ - `LG Electronics 14x Internal BDXL Blu-Ray Burner Rewriter WH14NS40 - Bulk Drive - Black - $56.95 `_ - `5 Pack Monoprice 18-Inch SATA III 6.0 Gbps Cable with Locking Latch and 1 x 90-Degree Plug (108783) - $7.99 `_ - `StarTech.com 12-Inch LP4 to 2x SATA Power Y Cable Adapter - $3.99 `_ - `JBtek Sleeved PWM Fan Splitter Cable 1 to 2 Converter - $5.99 `_ - `WD Blue 1TB SATA 6Gb/s 7200rpm Internal Hard Drive - $54.99 (2 of these) `_ **Total price: $543.87** Storage ======= I originally tried to use the WD Green drives I had tried in my :doc:`Windows Home Server <../deprecated/hpex475>`. **FAIL.** The poor performance on these drives caused any sort of heavy :doc:`Plex <../../software/serve/plex>` library indexing to fail with I/O errors. I ended up having to replace these with different, better-performing drives. I used a drive I already had for the system drive on the box and added two higher-perf drives I bought as storage for the Plex library and scratch/temp space. I originally wanted to configure them in Windows Storage Spaces for fault tolerance, but I ran into an issue where :doc:`Plex <../../software/serve/plex>` constantly `refreshed item metadata endlessly `_ so I switched to standard drives and just made sure everything had a good backup running. This has better performance over mirroring anyway, and perf is key. On August 23, 2019 I upgraded the OS drive on the server to a Samsung 860 EVO 500GB SSD. While the Plex server performance itself was decent, any time I had to log in and perform maintenance was extremely slow. Rebooting or doing any sort of system updates was also very slow. The SSD has addressed that as well as some of the noise from the "spinning rust" disk. As part of the SSD update I cloned the HDD. There were three partitions - a system partition, an OS partition, and a recovery partition. Items of note: - I had to use a "server" version of Macrium Reflect since the OS on the machine is Windows Server. That required a 30 day trial rather than just being able to use the free version of the product. - The clone created an MBR disk rather than a GPT disk, which I think is fine. GPT seems to only be usable by UEFI; MBR seems to be usable by both UEFI and BIOS (?). - The system and OS partitions cloned fine (I was able to resize the OS partition as needed), but I had to `manually recreate the recovery partition `_. For some reason, the recovery partition just would not clone. Performance =========== After getting this built, I was very pleased with the performance. Transcoding a 1080p video barely raises the CPU usage to 10%, and a typical 2-hour 1080p movie can be converted with :doc:`Handbrake <../../software/convert/handbrake>` in under three hours. In November 2023 I upgraded the power supply to 500W and added a GeForce 1660 SUPER card to it so I could start transcoding/encoding 4K movies. The total upgrade cost was less than $250 and it makes 4K a breeze. I did have to update my Handbrake settings for using the GPU to encode, but that wasn't a big deal. Fan Upgrade =========== In September 2019 I upgraded the CPU cooler to a `be quiet! Dark Rock TF `_ because the existing CPU fan got pretty loud when people were using the Plex server or I was ripping movies. It was $90 at the time of purchase, but now when the CPU is fully loaded I don't hear a single thing. It makes working in the office next to the Plex server much easier.