Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

LibreOffice Online: 大規模運用のための実験 - KOF2019

100 views

Published on

Collabora Online (LibreOffice Online) とNextcloudの環境にて、HAProxyを使ってスケールさせる設定についての発表です。
実験として2つのCollabora Onlineサーバに負荷分散する内容です。
関西オープンフォーラム2019でインターンのNirinarisantatra Randrianarivonyが発表したスライドです。
https://k-of.jp/backend/session/1316

Published in: Software
  • Be the first to comment

  • Be the first to like this

LibreOffice Online: 大規模運用のための実験 - KOF2019

  1. 1. LibreOffice Online: 大規模運用のための実験  ランドリアナリヴ二 二リナリサンタトゥラ 2019 年 11 月 9 日 This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License
  2. 2. 2 Nirinarisantatra Randrianarivony ● From Madagascar ● Work at iCRAFT – As intern – Collabora Online and NextCloud integration – Blockchain solution for enterprise using Hyperledger ● Graduated from Kobe Institute of Computing – On September 2019 – JICA ABE Initiative Master Program
  3. 3. 3 Dive into the Indian Ocean
  4. 4. 4 Previous work ● Continuation of Murakami san’s work – “Large-scale operation of LibreOffice Online” – LibreOffice Conference in Spain (09/2019) ● How to make Nextcloud and Collabora Online scalable?
  5. 5. 5 Lab architectureClient NextCloud HAProxy Collabora OnlineCloud hostingInternet
  6. 6. 6 Overview of Collabora Online ● Online office based on LibreOffice ● Free/Open Source Software ● Portable, supports all major browsers ● Windows, Mac OS X, Android, and GNU/Linux ● Uses Open Document Format (ODF) natively – Also supports the use of dozens of file formats
  7. 7. 7 Difference with LibreOffice Online ● Collabora Online has the same functionality as LibreOffice Online ● Collabora Online is a build image and support is provided by Collabora Productivity ● Most of the development is done by Collabora Productivity developers ● iCRAFT is Collabora Productivity's business partner. Their services can be purchased at iCRAFT.
  8. 8. 8 Benefit for users ● Client side requires only a web browser ● Can be used from PC, tablet or smartphone ● For collaborative works ● Protects their privacy and allows them to keep a full control ● Cloud or on-premises environment
  9. 9. 9 Use cases
  10. 10. 10 Source: https://www.collaboraoffice.com/
  11. 11. 11 Source: https://www.collaboraoffice.com/
  12. 12. 12 Source: https://www.collaboraoffice.com/
  13. 13. 13 Configuration
  14. 14. 14 Overall configuration Nextcloud MySQL PHP NGINX HAProxy Collabora1 Collabora2 ... Collaboran Collabora Online ● SSL Termination ● Roundrobin loadbalancing ● Listen on 80 & 443 ● HTTPS redirect ● Listen on 9980 ● HTTP only ● 2 servers (test)
  15. 15. 15 Nextcloud ● Install required packages: $ sudo apt install nginx mysql-server mysql-client ● Create database: $ sudo mysql -u root -p > create database nextcloud; > grant all privileges on nextcloud.* to nextcloud@localhost; > flush privileges; > exit ● Download Nextcloud: $ cd /var/www/ $ sudo wget https://download.nextcloud.com/server/releases/latest.tar.bz2 $ sudo tar xvf latest.tar.bz2 $ sudo mkdir -p nextcloud/data/ $ sudo chown -R www-data:www-data /var/www/nextcloud/
  16. 16. 16 NGINX configuration Filename: /etc/nginx/sites-enabled/nextcloud
  17. 17. 17 HAProxy ● Version 1.8.8 ● Installation step: $ sudo apt install haproxy ● Configuration file check: $ sudo haproxy -c -V -f /etc/haproxy/haproxy.cfg
  18. 18. 18 HAProxy configuration Filename: /etc/haproxy/haproxy.cfg
  19. 19. 19 Collabora Online installation ● Repository configuration – Specify the Collabora repository, then: $ sudo apt update ● Install binaries: $ sudo apt install loolwsd collabora-online-brand ● Set admin password: $ sudo loolconfig set-admin-password
  20. 20. 20 Collabora Online configuration Filename: /etc/loolwsd/loolwsd.xml
  21. 21. 21 Demo
  22. 22. 22 Conclusion ● LibreOffice online based office provides many advantages for users ● Combined with Nextcloud, it becomes a secure and powerful collaborative tool ● It can be scaled-out using HAProxy
  23. 23. 23 Future work ● Improve availability – HAProxy & Nextcloud <= SpoF – Storage ● Performance – Collabora Online performance testing – Nextcloud tuning: https://docs.nextcloud.com/server/17/admin_manua l/installation/server_tuning.html
  24. 24. 24 Thank you iCRAFT LibreOffice contact information: librepc@icraft.jp https://librepc.jp https://icraft.jp

×