已解决 楼主现在用的中文搜索是es吗

  • 欢迎 游客 您的光临,下载之前请先阅读 积分规则(暂行) 。任何技术问题请在论坛提问,本站定制插件、模板主题售前、售后问题请联系QQ:5916171
UID
33
注册
2017/11/12
消息
53
解决方案
3
反馈评分
37
黄金
4,547.2G
    Android Chrome Mobile 66.0.3359.158
  • #1
正考虑换服务器,原来1.5G的内存,换成1G内存,三十万左右的帖子,估计危险吧。
目前阿里的带宽太小了,只2M,下载也就220KB,升级太贵。
nysql的全文搜索中文能解决了吗
 

死了算了

管理成员
CNXFans
UID
1
注册
2017/07/28
消息
1,134
解决方案
26
反馈评分
5,179
黄金
42,532.3G
    OS X 10.11 El Capitan Firefox 60.0
  • #2
是es,1g内存不知道行不行,估计悬,对这方面没深入研究过
 
UID
33
注册
2017/11/12
消息
53
解决方案
3
反馈评分
37
黄金
4,547.2G
    Android Chrome Mobile 66.0.3359.158
  • #3
你的是多少内存啊,现在搬到国外了,ping慢了,反应速度快多了。唉,我是杭州阿里云最早的一批客户,cpu性能差,io更差,内存1.5,最终开了swap,只要用到swap就很慢。前几天不知道什么问题,xf的job.php总是不停刷新,搞得cpu全天80以上。后来才找到原因,好像提醒的问题,有可能是插件的问题。收到删除了job数据表的莫名的行才解决
 
UID
33
注册
2017/11/12
消息
53
解决方案
3
反馈评分
37
黄金
4,547.2G
    Android Chrome Mobile 66.0.3359.158
  • #4
es太烧内存了
 

死了算了

管理成员
CNXFans
UID
1
注册
2017/07/28
消息
1,134
解决方案
26
反馈评分
5,179
黄金
42,532.3G
    OS X 10.11 El Capitan Firefox 60.0
  • #5
我的2G 可以修改配置估计帖子多了 搜索频繁的话es配置少了肯定不行的
 

死了算了

管理成员
CNXFans
UID
1
注册
2017/07/28
消息
1,134
解决方案
26
反馈评分
5,179
黄金
42,532.3G
    OS X 10.11 El Capitan Firefox 60.0
  • #6
@sniper756 你可以在QQ群里找jerry问一下 他是用两台vps 一个站点一个es
 

sniper756

CNXFans
UID
6
注册
2017/09/10
消息
12
反馈评分
3
黄金
615.2G
    Windows 7 Firefox 60.0
  • #7
@sniper756 你可以在QQ群里找jerry问一下 他是用两台vps 一个站点一个es
我用两台各1g内存的vps,一个放web,一个放es(es安装2.4.6)

elasticsearch.yml配置如下
代码:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: ***
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/elasticsearch
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.memory_lock: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true

es开启安全组,只允许web所在 vps的ip访问
 
  • 支持
反馈: amao
UID
33
注册
2017/11/12
消息
53
解决方案
3
反馈评分
37
黄金
4,547.2G
    OS X Chrome 67.0.3396.79
  • #8
我用两台各1g内存的vps,一个放web,一个放es(es安装2.4.6)

elasticsearch.yml配置如下
代码:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: ***
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/elasticsearch
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.memory_lock: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true

es开启安全组,只允许web所在 vps的ip访问
你的是用的阿里云吗?香港还是国内?国内的带宽太贵
香港的据说有https阻断的问题
 
UID
153
注册
2018/07/14
消息
28
反馈评分
3
黄金
35.0G
    Windows 7 Chrome 64.0.3282.167
  • #10
装了,搜索中文还是没搜到
 
UID
36
注册
2017/11/16
消息
4
反馈评分
0
黄金
43.7G
    Android Chrome Mobile 65.0.3325.109
  • #12
我用两台各1g内存的vps,一个放web,一个放es(es安装2.4.6)

elasticsearch.yml配置如下
代码:
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: ***
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
# node.name: node-1
#
# Add custom attributes to the node:
#
# node.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/elasticsearch
#
# Path to log files:
#
# path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
# bootstrap.memory_lock: true
#
# Make sure that the `ES_HEAP_SIZE` environment variable is set to about half the memory
# available on the system and that the owner of the process is allowed to use this limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: 0.0.0.0
#
# Set a custom port for HTTP:
#
http.port: 9200
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
# discovery.zen.ping.unicast.hosts: ["host1", "host2"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of nodes / 2 + 1):
#
# discovery.zen.minimum_master_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>
#
# ---------------------------------- Gateway -----------------------------------
#
# Block initial recovery after a full cluster restart until N nodes are started:
#
# gateway.recover_after_nodes: 3
#
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
#
# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
# node.max_local_storage_nodes: 1
#
# Require explicit names when deleting indices:
#
# action.destructive_requires_name: true

es开启安全组,只允许web所在 vps的ip访问
试试看。。