日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【SaltStack官方版】—— STORING JOB RESULTS IN AN EXTERNAL SYSTEM

發布時間:2025/4/9 编程问答 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【SaltStack官方版】—— STORING JOB RESULTS IN AN EXTERNAL SYSTEM 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

STORING JOB RESULTS IN AN EXTERNAL SYSTEM

After a job executes, job results are returned to the Salt Master by each Salt Minion. These results are stored in the?Default Job Cache.

作業執行后,作業結果由每個salt minion返回給salt master。這些結果存儲在默認作業緩存中。

In addition to the Default Job Cache, Salt provides two additional mechanisms to send job results to other systems (databases, local syslog, and others):

除了缺省的作業緩存之外,Salt還提供了兩種附加的機制來將作業結果發送給其他系統(數據庫、本地系統日志等):

  • External Job Cache 外部job緩存
  • Master Job Cache? Maste job緩存

The major difference between these two mechanism is from where results are returned (from the Salt Master or Salt Minion). Configuring either of these options will also make the?Jobs?Runner?functions?to automatically query the remote stores for information.

這兩種機制之間的主要區別是從結果返回(從salt master或salt minion)。配置這些選項中的任何一個也將使Jobs?Runner?functions自動查詢遠程存儲的信息。

external job cache - minion-side returner

When an External Job Cache is configured, data is returned to the Default Job Cache on the Salt Master like usual, and then results are also sent to an External Job Cache using a Salt returner module running on the Salt Minion.

當配置外部作業緩存時,數據像往常一樣返回到salt master上的缺省作業緩存,然后使用在salt minion上運行的salt返回器模塊將結果發送到外部作業緩存。

  • Advantages: Data is stored without placing additional load on the Salt Master.?優點:數據存儲,而不增加 Salt Master上的額外負載。
  • Disadvantages: Each Salt Minion connects to the external job cache, which can result in a large number of connections. Also requires additional configuration to get returner module settings on all Salt Minions. 缺點:每個salt minion連接到外部作業緩存,這可能導致大量的連接。還需要額外的配置,以獲得返回模塊設置在所有salt minions。

master job cache - master-side returner

New in version 2014.7.0.

Instead of configuring an External Job Cache on each Salt Minion, you can configure the Master Job Cache to send job results from the Salt Master instead. In this configuration, Salt Minions send data to the Default Job Cache as usual, and then the Salt Master sends the data to the external system using a Salt returner module running on the Salt Master.

代替配置每個salt minion上的外部作業緩存,可以配置Master job cache以salt master發送作業結果。在這種配置中,salt? minion像往常一樣將數據發送到默認作業緩存,然后salt master使用運行在salt master上的salt返回器模塊將數據發送到外部系統。

  • Advantages: A single connection is required to the external system. This is preferred for databases and similar systems.優點:外部系統需要一個連接。這對于數據庫和類似系統是優選的。
  • Disadvantages: Places additional load on your Salt Master.?缺點:給你的salt master 增加額外的負擔。

configure an external or master job cache

step 1: understand salt returners 了解salt returners

Before you configure a job cache, it is essential to understand Salt returner modules ("returners"). Returners are pluggable Salt Modules that take the data returned by jobs, and then perform any necessary steps to send the data to an external system. For example, a returner might establish a connection, authenticate, and then format and transfer data.

在配置job cache之前,了解Salt returner 模塊("returners")是絕對有必要的。Returners?是可插拔的Salt模塊,它接收作業返回的數據,然后執行任何必要的步驟將數據發送到外部系統。例如,返回者可以建立連接、認證、然后格式化和傳輸數據。

The Salt Returner system provides the core functionality used by the External and Master Job Cache systems, and the same returners are used by both systems.

Salt Returnner系統提供ExternalMaster Job Cache系統所使用的核心功能,并且兩個系統都使用相同的returnners

Salt currently provides many different returners that let you connect to a wide variety of systems. A complete list is available at?all Salt returners. Each returner is configured differently, so make sure you read and follow the instructions linked from that page.

Salt目前提供了許多不同的returners, 讓你連接到各種各樣的系統。所有Salt returners都有一份完整的清單。每個return的配置不同,所以請務必閱讀并遵循從該頁面鏈接的指令。

For example, the MySQL returner requires: 比如,MySQL returnner的規定:

  • A database created using provided schema (structure is available at?MySQL?returner)
  • A user created with privileges to the database
  • Optional SSL configuration

A simpler returner, such as Slack or HipChat, requires:

  • An API key/version
  • The target channel/room
  • The username that should be used to send the message

step 2: configure the returner

After you understand the configuration and have the external system ready, the configuration requirements must be declared.

在了解配置并使外部系統準備好之后,必須聲明配置要求。

EXTERNAL JOB CACHE

The returner configuration settings can be declared in the Salt Minion configuration file, the Minion's pillar data, or the Minion's grains.

returner聲明設置可以在salt minion配置文件配置,Minion的pillar數據或Minion的grains聲明。?

If?external_job_cache?configuration settings are specified in more than one place, the options are retrieved in the following order. The first configuration location that is found is the one that will be used.

如果在多個地方指定外部 external_job_cache,則按以下順序檢索選項。找到的第一個配置位置是將被使用的位置。

  • Minion configuration file
  • Minion's grains
  • Minion's pillar data

MASTER JOB CACHE

The returner configuration settings for the Master Job Cache should be declared in the Salt Master's configuration file.

Master Job Cache 的返回器配置設置應在Salt Master'的配置文件中聲明。

CONFIGURATION FILE EXAMPLES

MySQL requires:

mysql.host: 'salt' mysql.user: 'salt' mysql.pass: 'salt' mysql.db: 'salt' mysql.port: 3306

Slack requires:

slack.channel: 'channel' slack.api_key: 'key' slack.from_name: 'name'

After you have configured the returner and added settings to the configuration file, you can enable the External or Master Job Cache.

在配置returnner并將配置添加到配置文件之后,可以啟用?External or Master Job Cache。

step 3: enable the external or master job cache

Configuration is a single line that specifies an already-configured returner to use to send all job data to an external system.

配置是一個單行,指定已配置的returner用于將所有作業數據發送到外部系統。

EXTERNAL JOB CACHE

To enable a returner as the External Job Cache (Minion-side), add the following line to the Salt Master configuration file:

若要使returner作為?External Job Cache (Minion-side),請將以下行添加到Salt Master?配置文件中:

ext_job_cache: <returner>

For example:?例如:

ext_job_cache: mysql 注意: When configuring an External Job Cache (Minion-side), the returner settings are added to the Minion configuration file, but the External Job Cache setting is configured in the Master configuration file. 當配置 External Job Cache (Minion-side)時,將returner設置添加到 Minion配置文件中,但 External Job Cache設置在Master配置文件中配置。

master job cache

To enable a returner as a Master Job Cache (Master-side), add the following line to the Salt Master configuration file:

若要使returner?作為Master Job Cache (Master-side), 請將以下行添加到Salt Master?配置文件中:?

master_job_cache: <returner>

For example:??例如:

master_job_cache: mysql

Verify that the returner configuration settings are in the Master configuration file, and be sure to restart the salt-master service after you make configuration changes. (service?salt-master?restart).

驗證returner配置設置在Master配置文件中,并確保在配置更改之后重新啟動?salt-master?服務。(service?salt-master?restart)。

轉載于:https://www.cnblogs.com/zuoyang/p/9254379.html

總結

以上是生活随笔為你收集整理的【SaltStack官方版】—— STORING JOB RESULTS IN AN EXTERNAL SYSTEM的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 国产不卡a | 在线免费观看小视频 | 午夜一级免费 | 插插射射 | 亚洲无吗一区二区三区 | 日韩欧美在线中文字幕 | 欧美浪妇xxxx高跟鞋交 | 日日日夜夜操 | 一区二区三区在线不卡 | 国产在线视频卡一卡二 | 欧美成人国产 | 国产精品高潮av | 女人被男人操 | 97精品人妻一区二区三区 | 亚洲免费观看在线 | 亚洲激情久久 | 国产精品免费无遮挡无码永久视频 | 夜夜夜夜操| 国产福利短视频 | 视频一区二区三区在线 | 卡通动漫精品一区二区三区 | 中文字幕在线资源 | 天堂网在线观看 | 欧美一级黄色片在线观看 | 欧美在线网站 | 欧美成人日韩 | 性网站在线观看 | 精品视频日韩 | 欧美一区二区三区四区视频 | 午夜免费片| 国产又粗又猛又爽视频 | 精品国产三级片在线观看 | 久久久久爱 | 国产精品伦理一区 | 丰满少妇高潮在线观看 | 欧美激情18 | 亚洲欧美日本在线观看 | 91丨国产丨捆绑调教 | 福利国产视频 | 91久久国语露脸精品国产高跟 | 久久人人添人人爽添人人片 | 91精品国产成人www | 亚洲精品专区 | 欧美大片在线看 | 乱色精品无码一区二区国产盗 | 国产精欧美一区二区三区白种人 | 日韩国产综合 | 在线观看黄色免费视频 | 麻豆传谋在线观看免费mv | 97爱爱视频| 手机在线不卡av | 色伊人av | 亚洲大尺度av | 亚洲成年网站 | 成人视屏在线 | 91欧美日韩麻豆精品 | 黑人与日本少妇 | 热久久91 | 3级av | 无码国产伦一区二区三区视频 | 精品人妻无码专区视频 | 一区二区精品在线 | 美女无遮挡免费网站 | 香蕉久久精品日日躁夜夜躁 | 国产成人在线免费 | 日韩一区欧美一区 | 午夜电影网一区 | 狠狠干网| 91中文字幕在线播放 | 台湾少妇xxxx做受 | 激情视频在线观看免费 | 又黄又刺激的视频 | 亚洲一区二区免费在线观看 | 成人手机视频在线观看 | 日韩欧美卡一卡二 | 国产精品日韩欧美一区二区三区 | 日本高清视频免费观看 | 久久深夜 | 激情五月在线观看 | 日韩在线观看免费全 | 天天摸天天插 | 国产视频97 | 视频区小说区图片区 | 中文字幕影片免费在线观看 | 日本黄网站在线观看 | 久久国产精品无码一级毛片 | 黄污视频网站 | 在线观看的网站 | 精品少妇一区二区三区 | 葵司在线视频 | 超碰av人人| 今天高清视频在线观看视频 | 中文字幕一区二区久久人妻 | 日韩一级片视频 | 日批视频在线免费看 | 欧美乱人伦 | 久久中文字幕视频 | 新婚之夜玷污岳丰满少妇在线观看 | 又黄又爽又刺激的视频 |