> 這一篇應該是mesos文檔里面最難翻譯的一篇,如何準確的去理解每一個配置選項正確的含義,需要對mesos有完整的理解,并且深入的實踐.因為并不是每一個參數,都那么常用,甚至很多都很少被使用.這是一個長期的過程,此文檔翻譯暫停(最后做),請參考原文:http://mesos.apache.org/documentation/latest/configuration/
## mesos配置
Mesos master和agent可以從命令行或環境變量接收一系列配置選項.通過運行```mesos-master --help```或者```mesos-agent --help```可以查看可用配置選項.每個選項都可以通過2個途徑進行設置:
* 執行命令的時候,使用```--option_name=value```,即直接指定選項值.或者指定一個包含選項的文件(--option_name=file://path/to/file).文件路徑可以是絕對路徑,也可以時相對當前目錄的路徑.
* 通過設置環境變量```MESOS_OPTION_NAME```,這些option都是以MESOS_為前綴
配置選項取值,先搜索環境變量,然后才是命令行.
**重要的配置選項**
如果你有特殊的編譯需求,當你配置mesos時候,請參考```./configure --help```.這個文檔只列出了最新版本的配置選項.如果你想查看你手上mesos版本命令的配置選項,請運行```命令 --help```,比如:``` mesos-master --help```
### master 和 agent 配置選項
|參數|說明|
|---|---|
|--advertise_ip=VALUE|Mesos master/agent對公發布的ip地址,這個ip地址不與master和agent綁定.這個ip地址用于訪問該master/agent|
|--advertise_port=VALUE|master/agent對公發布的ip地址端口,這個ip地址端口不與master和agent綁定.這個ip地址端口用于訪問該master/agent|
|--[no-]authenticate_http|If true, only authenticated requests for HTTP endpoints supporting authentication are allowed. If false, unauthenticated requests to HTTP endpoints are also allowed. (default: false)|
|--[no-]authenticate_http_frameworks| If true, only authenticated HTTP based frameworks are allowed to register. If false, HTTP frameworks are not authenticated. For more about HTTP frameworks see the Scheduler HTTP API documentation. (default: false)|
|--firewall_rules=VALUE|The value could be a JSON-formatted string of rules or a file path containing the JSON-formatted rules used in the endpoints firewall. Path must be of the form file:///path/to/file or /path/to/file.<br>See the Firewall message in flags.proto for the expected format.<br>Example:<br><pre><code>
{
"disabled_endpoints" : {
"paths" : [
"/files/browse",
"/metrics/snapshot"
]
}
}
</code></pre>|
|--[no-]help| 輸出幫助信息. (默認值: false)|
|--http_authenticators=VALUE| HTTP authenticator implementation to use when handling requests to authenticated endpoints. Use the default basic, or load an alternate HTTP authenticator module using --modules.<br>Currently there is no support for multiple HTTP authenticators. (default: basic)|
|--http_framework_authenticators=VALUE|HTTP authenticator implementation to use when authenticating HTTP frameworks. Use the basic authenticator or load an alternate HTTP authenticator module using --modules. This must be used in conjunction with --authenticate_http_frameworks.<br>Currently there is no support for multiple HTTP authenticators.|
|--ip=VALUE|監聽的ip地址. 不能與--ip_discovery_command一起使用 . (master 默認: 5050; agent 默認: 5051)|
|--ip_discovery_command=VALUE|Optional IP discovery binary: if set, it is expected to emit the IP address which the master/agent will try to bind to. Cannot be used in conjunction with --ip.|
|--port=VALUE|Port to listen on.|
|--[no-]version|Show version and exit. (default: false)|
|--hooks=VALUE|A comma-separated list of hook modules to be installed inside master/agent.|
|--hostname=VALUE|The hostname the agent node should report, or that the master should advertise in ZooKeeper. If left unset, the hostname is resolved from the IP address that the master/agent binds to; unless the user explicitly prevents that, using --no-hostname_lookup, in which case the IP itself is used.|
|--[no-]hostname_lookup|Whether we should execute a lookup to find out the server's hostname, if not explicitly set (via, e.g., --hostname). True by default; if set to false it will cause Mesos to use the IP address, unless the hostname is explicitly set. (default: true)|
|--modules=VALUE |List of modules to be loaded and be available to the internal subsystems.<br>Use --modules=filepath to specify the list of modules via a file containing a JSON-formatted string. filepath can be of the form file:///path/to/file or /path/to/file.<br>Use --modules="{...}" to specify the list of modules inline.<br>Example:<br><pre><code>{
"libraries": [
{
"file": "/path/to/libfoo.so",
"modules": [
{
"name": "org_apache_mesos_bar",
"parameters": [
{
"key": "X",
"value": "Y"
}
]
},
{
"name": "org_apache_mesos_baz"
}
]
},
{
"name": "qux",
"modules": [
{
"name": "org_apache_mesos_norf"
}
]
}
]
}</code></pre>|
- 版權
- 博客主題
- 如何不去做運行3.5G-docker鏡像的工程師
- 預備主題
- FastDFS快速入門
- mysql定時創建月表
- SpringMVC-Restful
- Docker生態系統
- The Docker Ecosystem: An Introduction to Common Components
- docker監控指標
- 基于etcd服務發現的overlay跨多宿主機容器網絡
- etcd:從應用場景到實現原理的全方位解讀
- docker存儲驅動詳解
- 使用docker/engine-api操作docker
- 提升Docker安全性
- docker安全之用戶資源隔離
- marathon
- 開始
- 安裝mararhon
- 高可用模式
- 使用marathon
- 應用的部署
- 架構組件
- Dubbo與Zookeeper、SpringMVC整合和使用(負載均衡、容錯)
- Openstack架構解析
- haproxy
- Ubuntu系統安裝截圖
- mesos官方文檔
- 關于譯者
- mesos基礎
- Mesos架構
- 視頻與ppt
- 讓mesos跑起來
- 快速入門
- 配置
- Containerizer
- Docker Containerizer
- 監控
- 博客文章集
- 煮餃子與mesos之間妙不可言的關系
- linux運維
- 基礎篇
- 進階篇
- mysql
- Ubuntu14.04安裝mysql5.6
- MySQL 5.6 replicate原理與實踐
- mysql性能
- redis
- redis安裝及基礎知識
- redis數據結構
- redis命令
- redis數據持久化
- Redis主從復制
- redis集群
- 其他