From owner-freebsd-questions@freebsd.org Fri Nov 13 02:03:00 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E87B246B1A9 for ; Fri, 13 Nov 2020 02:03:00 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "www.holgerdanske.com", Issuer "www.holgerdanske.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CXMDz6Rykz51j9 for ; Fri, 13 Nov 2020 02:02:59 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Thu, 12 Nov 2020 18:02:48 -0800 Subject: Re: Feedback for a small server project To: freebsd-questions@freebsd.org References: <20201113011300.0291aebb@uni-dortmund.de> From: David Christensen Message-ID: Date: Thu, 12 Nov 2020 18:02:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201113011300.0291aebb@uni-dortmund.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CXMDz6Rykz51j9 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dpchrist@holgerdanske.com has no SPF policy when checking 2001:470:0:19b::b869:801b) smtp.mailfrom=dpchrist@holgerdanske.com X-Spamd-Result: default: False [-0.11 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:0:19b::b869:801b:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2001:470:0:19b::b869:801b:from:127.0.2.255]; ARC_NA(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.989]; DMARC_NA(0.00)[holgerdanske.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2020 02:03:01 -0000 On 2020-11-12 16:13, Christian Baer wrote: > Greetings Programs! :-) > > This is not exactly a FreeBSD question, so please don't throw rocks at > me! :-) FreeBSD will however most likely be utilized for this project! > > Because of the lockdown here in Germany (I know, in many other places > too), I have way too much time on my hands. And since I haven't > had the chance to really spend any money since April, I can afford to > spend a little. Don't go crazy, everybody! :-P > > I would like to build a little server for my own use. This server is to > be reachable from the outside, so this is not really a home NAS thing. > A few things I'd like to run: > > - Webserver (Apache or nginx) > - Nextcloud > - Jitsi > - Dovecot > - maybe an XMPP (like Prosody) > - maybe a Matrix server > > I am currently using Nextcloud on shared hosting but would like to port > that to hardware I control, not so much due to trust issues but because > some of the NC-apps use a few more CPU-cycles than my ISP likes. While > the performance for up- and downloads is more than fine, phonetrack is > pretty laggy. This would be the first service I would set up. I > currently also use XMPP, Matrix and IMAP, but on external servers and > this works fine for me. So Jitsi would probably come next. But I do > want to run all services in the long run. > > My internet connection is fast enough to run this sort of thing for my > purposes. > > I am thinking about doing this using an ODROID N2+[1], the 4GB version. > I have two main reasons for this: > > - ludic drive > Doing this on an ARM is way more exciting than on an AMD64. :-) > I have alread got a case for everything (an old modem from > the early 80s). It would look pretty cool. :-P > > - energy cost > Electricity is annoyingly expensive in Germany (a kWh costs ~30 > Eurocents). So the fact that this computer needs a relatively small > amount of electricity (compared to the alternative) is a good factor > for me. > > The alternative would be a computer I still have standing around here. > It's an AMD A10-7800 with 32GB of RAM on an Asus ROG board. It was > bought for a special (non-gaming) purpose (hence the high amount of > RAM), but never really got used, so it currently just collecting dust. > > The usage scale of this project is pretty minute actually. We are > talking between a dozen an two dozen users at the most - closer to the > one dozen, probably even less. It would be my family (including my > brother and his family), maybe one or two people from work and a couple > of friends. Most of the time, the system would be used for file storage, > text messages (possibly photos or media messages). Video calls may > cause some slightly higher loads. > > I am guessing that the "real" computer (as apposed to the SBC) will > probably have more CPU-power and the extra RAM will also make a > difference, but with a 65W TDP CPU, it will [probably] also *need* more > power. :-) I have also considered that the "real" computer has much > better connectivity for HDDs, which do not have to be connected via USB. > > What do you guys think? Would the SBC be able to deal with > the said tasks or would it be worth using the machine I already own and > deal with the electricity bill? I do want to have some reserves, so I > do not have to turn anyone down, who may wish to join the club, but I > do not want to go for an overkill either. > > Please give me your thoughts! > > Best regards und stay negative! > Chris > > [1] https://www.hardkernel.com/shop/odroid-n2-with-4gbyte-ram-2/ What ISP do you have? What Internet plan? I assume your NextCloud is running on a virtual private server (VPS). Which provider and what plan? How many users are connected when CPU cycles run out? What about memory? Storage? Network I/O? What about the other services? CPU cycles? Memory? Storage? Network I/O? Are you thinking one machine with all services running on one hardware OS instance? Jails? Virtualization? David