Homeland homeland 性能怎么样?

sessionstop · April 12, 2018 · Last by sessionstop replied at April 22, 2018 · 4697 hits

各位好,看了下 homeland 官网,说是需要 4 Core CPU, 4G Memory, 50G Disk, 64 位。有以下几个问题:

问题 1:4G 内存的配置,需要这么好的配置吗?Discourse 我用 2G 内存跑了一年也没问题。

问题 2:有创建话题的接口吗?(抱歉,因为我没有找到所有接口列表的文档)

问题 3:homeland 是如何处理恶意访问和恶意注册的?有没有 rate limit 机制?

先谢谢各位的回答了!

  1. 性能比 Discourse 好(因为某些实现比 Discourse 更简单),配置只是推荐方式
  2. 有,Ruby China 页脚的 API
  3. 有 RateLimit 机制,可配置,相见配置配置部分

好的,谢谢大佬。

@huacnlee https://gethomeland.com/install/ 这个文档是针对 14.04 的,我如果用 16.04 可以吗?还是这个脚本:curl -sSL https://git.io/install-docker | bash 吗?

我搭建好了,但是使用连不上 postgresql,谁能帮忙看看吗?用的环境是 vagrant + ubuntu 16.04。执行 sudo make install 时,报如下错误:

@huacnlee 请问回复数 replies_count 是在哪里增加的?代码里没搜到

Reply to sessionstop

db_host=postgresql

Reply to Terry.Shi

could not translate host name "postgresql" to address: Name or service not known Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"utf-8", "database"=>"homeland", "username"=>"postgres", "password"=>"vagrant", "host"=>"postgresql", "port"=>5432, "pool"=>64} rails aborted!

postgresql 需要另外搭建吗?还是使用 sudo make install 时就会创建 postgresql 实例并启动?

Reply to sessionstop

我看过 https://github.com/ruby-china/homeland-docker.git 这个项目里的数据库配置应该是已经配好了的 直接启动就会创建数据库

已解决。我内存配置小的缘故。

sessionstop closed this topic. 22 Apr 00:38
You need to Sign in before reply, if you don't have an account, please Sign up first.