課程
/數(shù)據(jù)庫
/MySQL
/Kingshard數(shù)據(jù)庫中間件理論與實踐
找不到代碼啊
2020-07-06
源自:Kingshard數(shù)據(jù)庫中間件理論與實踐 3-7
正在回答
#?server?listen?addraddr?:?0.0.0.0:9696#?the?web?api?serverweb_addr?:?0.0.0.0:9797#HTTP?Basic?Authweb_user?:?adminweb_password?:?admin#?user?list?with?user?name?and?passworduser_list:-user?:??kingshardpassword?:?kingshard#if?set?log_path,?the?sql?log?will?write?into?log_path/sql.log,the?system?log#will?write?into?log_path/sys.log#log_path?:?/Users/flike/log#?log?level[debug|info|warn|error],default?errorlog_level?:?debug#if?set?log_sql(on|off)?off,the?sql?log?will?not?output#log_sql:?off?#only?log?the?query?that?take?more?than?slow_log_time?ms#slow_log_time?:?100#?the?path?of?blacklist?sql?file#?all?these?sqls?in?the?file?will?been?forbidden?by?kingshard#blacklist_sql_file:?/Users/flike/blacklist#?only?allow?this?ip?list?ip?to?connect?kingshard#allow_ips:?127.0.0.1#?the?default?charset?of?kingshard?is?utf8.#proxy_charset:?utf8mb4#?node?is?an?agenda?for?real?remote?mysql?server.nodes?:-? ????name?:?node1? ????#?default?max?conns?for?mysql?server ????max_conns_limit?:?8 ????#?all?mysql?in?a?node?must?have?the?same?user?and?password ????user?:??kingshard? ????password?:?kingshard ????#?master?represents?a?real?mysql?master?server? ????master?:?127.0.0.1:3306 ????#?slave?represents?a?real?mysql?slave?server,and?the?number?after?'@'?is? ????#?read?load?weight?of?this?slave. ????slave?:? ????down_after_noalive?:?32-? ????name?:?node2? ????#?default?max?conns?for?mysql?server ????max_conns_limit?:?8 ????#?all?mysql?in?a?node?must?have?the?same?user?and?password ????user?:??kingshard? ????password?:?kingshard ????#?master?represents?a?real?mysql?master?server? ????master?:?192.168.59.103:3307 ????#?slave?represents?a?real?mysql?slave?server? ????slave?:? ????#?down?mysql?after?N?seconds?noalive ????#?0?will?no?down ????down_after_noalive:?32#?schema?list?include?all?user's?schema#?schema?defines?which?db?can?be?used?by?client?and?this?db's?sql?will?be?executed?in?which?nodesschema_list?:- ????user:?kingshard ????nodes:?[node1,node2] ????default:?node1?????? ????shard: ????-??? ????????db?:?kingshard ????????table:?test_shard_hash ????????key:?id ????????nodes:?[node1,?node2] ????????type:?hash ????????locations:?[4,4] ????-??? ????????db?:?kingshard ????????table:?test_shard_range ????????key:?id ????????type:?range ????????nodes:?[node1,?node2] ????????locations:?[4,4] ????????table_row_limit:?10000
舉報
學(xué)會Kingshard數(shù)據(jù)庫中間件理論以及Kingshard數(shù)據(jù)庫的安裝和使用。
1 回答從節(jié)點伸縮的時候,怎么辦?
1 回答proxy這種方式會造成單點問題么?
1 回答你好,請問kingshard資源占用情況怎么樣?對服務(wù)器的配置要求高嗎?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2020-07-06
2020-07-06