Elasticsearch和Logstash指令

logstash相关文件的路径(rpm)

https://www.elastic.co/guide/en/logstash/7.6/dir-layout.html

The Debian package and the RPM package each place config files, logs, and the settings files in the appropriate locations for the system:

TypeDescriptionDefault LocationSetting

home

Home directory of the Logstash installation.

/usr/share/logstash

 

bin

Binary scripts including logstash to start Logstash and logstash-plugin to install plugins

/usr/share/logstash/bin

 

settings

Configuration files, including logstash.ymljvm.options, and startup.options

/etc/logstash

path.settings

conf

Logstash pipeline configuration files

/etc/logstash/conf.d/*.conf

See/etc/logstash/pipelines.yml

logs

Log files

/var/log/logstash

path.logs

plugins

Local, non Ruby-Gem plugin files. Each plugin is contained in a subdirectory. Recommended for development only.

/usr/share/logstash/plugins

path.plugins

data

Data files used by logstash and its plugins for any persistence needs.

/var/lib/logstash

path.data

logstash启动指令(rpm) 

https://www.elastic.co/guide/en/logstash/7.6/running-logstash.html

Distributions like Debian Jessie, Ubuntu 15.10+, and many of the SUSE derivatives use systemd and the systemctl command to start and stop services. Logstash places the systemd unit files in /etc/systemd/system for both deb and rpm. After installing the package, you can start up Logstash with:

sudo systemctl start/stop/restart/status logstash.service

Elasticsearch启动指令(rpm)

systemctl start elasticsearch.service

Elasticsearch配置文件路径(rpm)

Elasticsearch has three configuration files:

  • elasticsearch.yml for configuring Elasticsearch
  • jvm.options for configuring Elasticsearch JVM settings
  • log4j2.properties for configuring Elasticsearch logging

These files are located in the config directory, whose default location depends on whether or not the installation is from an archive distribution (tar.gz or zip) or a package distribution (Debian or RPM packages).

the config directory location defaults to /etc/elasticsearch.

权衡 PFC 和 LLC 电感磁芯选择时,需要综合考虑多个方面: - **工作特性适配**:PFC 电路主要用于功率因数校正,工作在连续导通模式(CCM)或不连续导通模式(DCM)。CCM 模式下,电流连续,要求磁芯能承受较高的直流偏置,环状磁芯具有较好的直流偏置特性,能在较大直流电流下保持较低的磁导率变化,可减少电感值的波动,适合 PFC 电感。LLC 谐振变换器工作在谐振状态,其电流为正弦波,对磁芯的高频特性和损耗要求较高。EE 型磁芯的绕组结构有利于降低绕组损耗,且磁路中的气隙分布更均匀,能更好地适应 LLC 电路的高频工作特性 [^1]。 - **磁路需求考量**:磁路的完整性和磁阻是重要因素。环状磁芯的磁路闭合,漏磁小,能有效减少电磁干扰(EMI),对于需要严格控制 EMI 的电源系统,环状磁芯是 PFC 电感的良好选择。而 EE 型磁芯中间柱可设置气隙,方便调整磁导率和存储能量,满足 LLC 电感在谐振过程中对能量存储和释放的要求 [^1]。 - **实际工程优化目标**:包括成本、尺寸和散热等。环状磁芯的绕线工艺相对复杂,成本较高,但体积小,适合对空间要求严格的应用。EE 型磁芯结构简单,绕线方便,成本较低,且散热性能较好,在对成本敏感和散热需求较大的设计中,EE 型磁芯更适合 LLC 电感 [^1]。 - **性能指标评估**:需要评估磁芯的饱和磁通密度、磁导率、损耗等参数。PFC 电感在高功率应用中,要求磁芯具有较高的饱和磁通密度,以避免磁饱和。LLC 电感则更关注磁芯在高频下的损耗,低损耗的磁芯能提高变换器的效率 [^1]。 ```python # 以下为简单的磁芯选择评估示例代码 # 假设 1 代表环状磁芯,2 代表 EE 型磁芯 # 定义评估函数,根据不同指标权重进行评分 def core_selection(pfc_dc_bias, pfc_emi, llc_high_freq_loss, llc_cost): pfc_score_ring = pfc_dc_bias * 0.4 + pfc_emi * 0.3 pfc_score_ee = (1 - pfc_dc_bias) * 0.4 + (1 - pfc_emi) * 0.3 llc_score_ring = (1 - llc_high_freq_loss) * 0.4 + (1 - llc_cost) * 0.3 llc_score_ee = llc_high_freq_loss * 0.4 + llc_cost * 0.3 pfc_choice = 1 if pfc_score_ring > pfc_score_ee else 2 llc_choice = 1 if llc_score_ring > llc_score_ee else 2 return pfc_choice, llc_choice # 示例输入,假设各项指标值在 0 到 1 之间 pfc_dc_bias = 0.8 # PFC 直流偏置适应性,值越高越好 pfc_emi = 0.7 # PFC 电磁干扰控制,值越高越好 llc_high_freq_loss = 0.2 # LLC 高频损耗,值越低越好 llc_cost = 0.3 # LLC 成本,值越低越好 pfc_choice, llc_choice = core_selection(pfc_dc_bias, pfc_emi, llc_high_freq_loss, llc_cost) print(f"PFC 电感选择磁芯类型: {'环状' if pfc_choice == 1 else 'EE 型'}") print(f"LLC 电感选择磁芯类型: {'环状' if llc_choice == 1 else 'EE 型'}") ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值