当前位置: 首页 > news >正文

网站开发与设计论文宁波营销型网站建设首选

网站开发与设计论文,宁波营销型网站建设首选,长沙装修公司口碑最好的是哪家,中国行业客户资源网RabbiMQ 是用 Erlang 开发的,集群非常方便,因为 Erlang 天生就是一门分布式语言,但其本身并不支持负载均衡。 RabbitMQ 的集群节点包括内存节点、磁盘节点。RabbitMQ 支持消息的持久化,也就是数据写在磁盘上,最合适的方案就是既有内存节点,又有磁盘节点。 RabbitMQ 模式大… RabbiMQ是用Erlang开发的,集群非常方便,因为Erlang天生就是一门分布式语言,但其本身并不支持负载均衡。 RabbitMQ的集群节点包括内存节点、磁盘节点。RabbitMQ支持消息的持久化,也就是数据写在磁盘上,最合适的方案就是既有内存节点,又有磁盘节点。 RabbitMQ模式大概分为以下三种: 单一模式;普通模式(默认的集群模式);镜像模式(把需要的队列做成镜像队列,存在于多个节点,属于RabbiMQ的HA方案,在对业务可靠性要求较高的场合中比较适用)。 要实现镜像模式,需要先搭建一个普通集群模式,在这个模式的基础上再配置镜像模式以实现高可用。 1. 集群架构# 2. 集群部署规划# itemnode 1node 2node 3listeners.tcp.default500051005200management.tcp.port502051205220mqtt.listeners.tcp.default5040514052403. 安装文件# 下载文件 请下载unix generic版本 以3.9.11版本为例: https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.11/rabbitmq-server-generic-unix-3.9.11.tar.xz 其他版本下载:https://github.com/rabbitmq/rabbitmq-server/releases 解压文件 xz -d rabbitmq-server-generic-unix-3.9.11.tar.xztar xvf rabbitmq-server-generic-unix-3.9.11.tar复制成功! 4. 集群部署# 4.1 创建文件目录# 分别创建三个节点(node)目录,多个以此类推node-N cd /datamkdir -p rabbitmq/dc3/node-01 rabbitmq/dc3/node-02 rabbitmq/dc3/node-03复制成功! 将解压的rabbitmq文件放入到每个节点中,其他节点操作一致 cp -r rabbitmq-server/* rabbitmq/dc3/node-01/# pwd # /data/rabbitmq/dc3/node-01# ls # escript etc plugins sbin share复制成功! 为每个节点创建配置和keys目录,其他节点操作一致 cd node-Nmkdir -p etc/rabbitmq keys复制成功! 4.2 配置文件# 在每个节点的etc/rabbitmq下添加配置文件advanced.config、rabbitmq.conf、rabbitmq-env.conf、enabled_plugins 4.2.1advanced.config# [%% ----------------------------------------------------------------------------%% Advanced Erlang Networking/Clustering Options.%%%% See https://www.rabbitmq.com/clustering.html for details%% ----------------------------------------------------------------------------%% Sets the net_kernel tick time.%% Please see http://erlang.org/doc/man/kernel_app.html and%% https://www.rabbitmq.com/nettick.html for further details.%%%% {kernel, [{net_ticktime, 60}]},%% ----------------------------------------------------------------------------%% RabbitMQ Shovel Plugin%%%% See https://www.rabbitmq.com/shovel.html for details%% ----------------------------------------------------------------------------{rabbitmq_shovel,[{shovels,[%% A named shovel worker.%% {my_first_shovel,%% [%% List the source broker(s) from which to consume.%%%% {sources,%% [%% URI(s) and pre-declarations for all source broker(s).%% {brokers, ["amqp://user:password@host.domain/my_vhost"]},%% {declarations, []}%% ]},%% List the destination broker(s) to publish to.%% {destinations,%% [%% A singular version of the 'brokers' element.%% {broker, "amqp://"},%% {declarations, []}%% ]},%% Name of the queue to shovel messages from.%%%% {queue, "your-queue-name-goes-here"},%% Optional prefetch count.%%%% {prefetch_count, 10},%% when to acknowledge messages:%% - no_ack: never (auto)%% - on_publish: after each message is republished%% - on_confirm: when the destination broker confirms receipt%%%% {ack_mode, on_confirm},%% Overwrite fields of the outbound basic.publish.%%%% {publish_fields, [{exchange, "my_exchange"},%% {routing_key, "from_shovel"}]},%% Static list of basic.properties to set on re-publication.%%%% {publish_properties, [{delivery_mode, 2}]},%% The number of seconds to wait before attempting to%% reconnect in the event of a connection failure.%%%% {reconnect_delay, 2.5}%% ]} %% End of my_first_shovel]}%% Rather than specifying some values per-shovel, you can specify%% them for all shovels here.%%%% {defaults, [{prefetch_count, 0},%% {ack_mode, on_confirm},%% {publish_fields, []},%% {publish_properties, [{delivery_mode, 2}]},%% {reconnect_delay, 2.5}]}]},{rabbitmq_auth_backend_ldap, [%%%% Authorisation%% =============%%%% The LDAP plugin can perform a variety of queries against your%% LDAP server to determine questions of authorisation. See%% https://www.rabbitmq.com/ldap.html#authorisation for more%% information.%% Set the query to use when determining vhost access%%%% {vhost_access_query, {in_group,%% "ou=${vhost}-users,ou=vhosts,dc=example,dc=com"}},%% Set the query to use when determining resource (e.g., queue) access%%%% {resource_access_query, {constant, true}},%% Set queries to determine which tags a user has%%%% {tag_queries, []}]} ].复制成功! 4.2.2rabbitmq.conf# ## This example configuration file demonstrates various settings ## available via rabbitmq.conf. It primarily focuses core broker settings ## but some tier 1 plugin settings are also covered. ## ## This file is AN EXAMPLE. It is NOT MEANT TO BE USED IN PRODUCTION. Instead of ## copying the entire (large!) file, create or generate a new rabbitmq.conf for the target system ## and populate it with the necessary settings. ## ## See https://rabbitmq.com/configure.html to learn about how to configure RabbitMQ, ## the ini-style format used by rabbitmq.conf, how it is different from `advanced.config`, ## how to verify effective configuration, and so on. ## ## See https://rabbitmq.com/documentation.html for the rest of RabbitMQ documentation. ## ## In case you have questions, please use RabbitMQ community Slack and the rabbitmq-users Google group ## instead of GitHub issues.# ====================================== # Core broker section # ======================================## Networking ## ==================== ## ## Related doc guide: https://rabbitmq.com/networking.html. ## ## By default, RabbitMQ will listen on all interfaces, using ## the standard (reserved) AMQP 0-9-1 and 1.0 port. ## listeners.tcp.default = 5000## To listen on a specific interface, provide an IP address with port. ## For example, to listen only on localhost for both IPv4 and IPv6: ## # IPv4 # listeners.tcp.local = 127.0.0.1:5672 # IPv6 # listeners.tcp.local_v6 = ::1:5672## You can define multiple listeners using listener names # listeners.tcp.other_port = 5673 # listeners.tcp.other_ip = 10.10.10.10:5672## TLS listeners are configured in the same fashion as TCP listeners, ## including the option to control the choice of interface. ## # listeners.ssl.default = 5030## It is possible to disable regular TCP (non-TLS) listeners. Clients ## not configured to use TLS and the correct TLS-enabled port won't be able ## to connect to this node. # listeners.tcp = none## Number of Erlang processes that will accept connections for the TCP ## and TLS listeners.k ## # num_acceptors.tcp = 10 # num_acceptors.ssl = 10## Socket writer will force GC every so many
http://www.hkea.cn/news/14465949/

相关文章:

  • 大宇网络潍坊网站建设英文在线购物网站建设
  • 做网站需要什么cailiao为什么要建设应急管理网站
  • 广州制作网站wordpress主题 科技
  • 网站服务器查找山东胶州建设工程招标网站
  • ip网站查询服务器外贸营销推广方案
  • 1688网站简介佛山网站建设哪里好
  • 相同网站名服务好的普通网站建设
  • 微信微网站制作公司dw网站制作流程
  • 百度地图开发网站网站论坛源码
  • 网站开发前途五大门户网站
  • 网站百度搜不到做电力产品的外贸网站
  • 河南建设银行处理违章网站免费域名如何建站
  • 站长素材音效下载网站设计制作要交印花税
  • 百度搜索不到网站手机绘制建房app
  • 苏州360推广 网站建设建设网银登录官网
  • 工信部网站备案系统怎么注册保定网站建设服务
  • 高密住房和城乡建设局网站wordpress管理页面地址
  • 青岛注册公司在哪个网站申请免费网站注册域名
  • 做制作网站找啥工作网络运营怎么学
  • 策划营销型企业网站应注意哪些事情(建设流层—)顶呱呱网站建设
  • 做个英文网站多少钱wordpress预约插件
  • 汕头做网站优化哪家好网站策划书 范文
  • wordpress采集站wordpress伪静态设置方法
  • 沛县网站制作泉州网站建设技术托管
  • 兰州网站建设推荐q479185700顶你推广平台排名
  • 注册个网站要多少钱办公网络建设项目商务要求
  • 齐家网和土巴兔装修哪家好优化大师安卓版
  • 开个个人网站网站建设使用工具
  • 网站大连顺义广州网站建设
  • h5网站开发培训哪里好上海最大的广告公司