将utils.lua
文件拷贝到你能引用到的位置后导入, 成功后即可在全全局使用var_dump
函数.
使用var_dump
输出_G
的内容
# 变更为BBR2 | |
netsh int tcp set supplemental Template=Internet CongestionProvider=bbr | |
netsh int tcp set supplemental Template=Datacenter CongestionProvider=bbr | |
netsh int tcp set supplemental Template=Compat CongestionProvider=bbr | |
netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=bbr | |
netsh int tcp set supplemental Template=InternetCustom CongestionProvider=bbr | |
# 恢复为CUBIC | |
# netsh int tcp set supplemental Template=Internet CongestionProvider=cubic | |
# netsh int tcp set supplemental Template=Datacenter CongestionProvider=cubic |
version: '3' | |
services: | |
opensearch-node: # This is also the hostname of the container within the Docker network (i.e. https://opensearch-node1/) | |
image: opensearchproject/opensearch:2 # Specifying the latest available image - modify if you want a specific version | |
container_name: opensearch-node | |
environment: | |
- cluster.name=opensearch-cluster # Name the cluster | |
- node.name=opensearch-node # Name the node that will run in this container | |
- bootstrap.memory_lock=true # Disable JVM heap memory swapping | |
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM |