Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
パルワールド専用サーバをAWS EC2で構築してDiscordチャットボットで運用してみた
Search
okuda ryunosuke
April 23, 2026
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
パルワールド専用サーバをAWS EC2で構築してDiscordチャットボットで運用してみた
okuda ryunosuke
April 23, 2026
More Decks by okuda ryunosuke
See All by okuda ryunosuke
細切れにすれば何でも食べられるLambdaはそういうやつ
okdryk
0
210
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
Amusing Abliteration
ianozsvald
1
350
Between Models and Reality
mayunak
4
500
Designing for Performance
lara
612
70k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Exploring anti-patterns in Rails
aemeredith
4
540
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Producing Creativity
orderedlist
PRO
348
41k
Transcript
パルワールド専用サーバを AWS EC2で構築して Discordチャットボットで運用してみた 株式会社テクノプロジェクト 奥田龍之介
パルワールドの紹介 2 広大な世界で不思議な生物『パル』を集めて、戦闘・建築・農業を行わせたり、工場で労働させたりする マルチプレイ対応のオープンワールドサバイバルクラフトゲーム
パルワールドのサーバ事情 公式専用サーバ • 身内だけでできない • 障害が起きると遊べない • たまにラグい プライベートサーバ •
身内だけで快適! 「自分で建てれば最強。でも、サーバ費用が気になる……」 2
コスト比較 サービス メモリ 月額費用 さくらインターネット 16GB 15,400円 エックスサーバー 16GB 9,750円
AWS EC2 (m6g.xlarge) 16GB 約3,200円 ※ ※ 平日3h・休日6h 月108h オンデマンド運用(150円/$換算) ずっと動かすと高いAWSも、遊ぶ時だけ使うなら一番安い 3
システム構成 技術スタック: EC2 (m6g.xlarge) | CloudWatch | Discord Webhook 4
起動方法 Discord Bot 実行画面 STEP 1 ユーザがDiscordで「起動」と打つ STEP 2 EC2が立ち上がる
4
メモリリークとの戦い 課題 初期パルワールドはメモリリーク問題があり、起動し続けるとするとクラッシュする。 解決策 • メモリ使用率が 90% を超えたらDiscordに通知 • 「再起動してください」と促す運用
結果 突然のクラッシュによるアイテム消失を防げるようになった。 実際のDiscord通知画面 ↑ メモリ80%超過時にBotが自動で警告 5
結果:かなり安くなった! AWS 請求明細(実際の画面) 6 月111Hの起動で約4500円!
反省点 セキュリティ • ずっと rootユーザ で操作 • 「よい子はマネしないでください」 構成 •
監視用の常駐スクリプトをEC2内で回してた • → Lambdaに任せればよかった 7
システム構成 4 Lambdaに するべきだった
まとめ 遊ぶ時だけ立てるならAWSが最強の選択肢 クラッシュ対策は「監視&通知」で解決 次はIAMユーザをちゃんと作ります! 8