久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='9STiS'><style id='9STiS'><dir id='9STiS'><q id='9STiS'></q></dir></style></legend>
    <bdo id='9STiS'></bdo><ul id='9STiS'></ul>

    1. <tfoot id='9STiS'></tfoot>

      <small id='9STiS'></small><noframes id='9STiS'>

      1. <i id='9STiS'><tr id='9STiS'><dt id='9STiS'><q id='9STiS'><span id='9STiS'><b id='9STiS'><form id='9STiS'><ins id='9STiS'></ins><ul id='9STiS'></ul><sub id='9STiS'></sub></form><legend id='9STiS'></legend><bdo id='9STiS'><pre id='9STiS'><center id='9STiS'></center></pre></bdo></b><th id='9STiS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9STiS'><tfoot id='9STiS'></tfoot><dl id='9STiS'><fieldset id='9STiS'></fieldset></dl></div>

        帶有 laravel 5.5 的 Predis“Aggregate/RedisCluster.php:33

        Predis with laravel 5.5 quot;No connections available in the pool in Aggregate/RedisCluster.php:337 quot;(帶有 laravel 5.5 的 Predis“Aggregate/RedisCluster.php:337 中的池中沒有可用連接) - IT屋-程序員軟件開發(fā)技術(shù)分享社

        <legend id='14qp0'><style id='14qp0'><dir id='14qp0'><q id='14qp0'></q></dir></style></legend>

          <i id='14qp0'><tr id='14qp0'><dt id='14qp0'><q id='14qp0'><span id='14qp0'><b id='14qp0'><form id='14qp0'><ins id='14qp0'></ins><ul id='14qp0'></ul><sub id='14qp0'></sub></form><legend id='14qp0'></legend><bdo id='14qp0'><pre id='14qp0'><center id='14qp0'></center></pre></bdo></b><th id='14qp0'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='14qp0'><tfoot id='14qp0'></tfoot><dl id='14qp0'><fieldset id='14qp0'></fieldset></dl></div>

        • <tfoot id='14qp0'></tfoot>

              <tbody id='14qp0'></tbody>

            <small id='14qp0'></small><noframes id='14qp0'>

                  <bdo id='14qp0'></bdo><ul id='14qp0'></ul>
                • 本文介紹了帶有 laravel 5.5 的 Predis“Aggregate/RedisCluster.php:337 中的池中沒有可用連接"的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我已經(jīng)在 Amazon ElastiCache 上為緩存設(shè)置了 redis-cluster,使用 Laravel 5.5 和 Predis 包,我收到以下錯(cuò)誤.

                  PredisClientException: 在 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php:337 中的池中沒有可用的連接

                  <塊引用>

                  跟蹤:PredisClientException: 在 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php:337 中的池中沒有可用連接

                  堆棧跟蹤:

                  0 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(411):PredisConnectionAggregateRedisCluster->guessNode(153)

                  1 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(388):PredisConnectionAggregateRedisCluster->getConnectionBySlot(153)

                  2 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(550):PredisConnectionAggregateRedisCluster->getConnection(Object(PredisCommandStringSetExpire))

                  3 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(593):PredisConnectionAggregateRedisCluster->retryCommandOnFailure(Object(PredisCommandStringSetExpire),'執(zhí)行命令')

                  4 vendor/predis/predis/src/Client.php(331): PredisConnectionAggregateRedisCluster->executeCommand(Object(PredisCommandStringSetExpire))

                  5 vendor/predis/predis/src/Client.php(314): PredisClient->executeCommand(Object(PredisCommandStringSetExpire))

                  6 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(96):PredisClient->__call('setex', Array)

                  7 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(108):IlluminateRedisConnectionsConnection->command('setex', Array)

                  8 vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(93): IlluminateRedisConnectionsConnection->__call('setex', Array)

                  9 vendor/laravel/framework/src/Illuminate/Cache/Repository.php(195): IlluminateCacheRedisStore->put('5rr44TBjIPEgJSx...','a:1:{s:6:"_flas...', 480)

                  10 vendor/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php(66):IlluminateCacheRepository->put('5rr44TBjIPEgJSx...','a:1:{s:6:"_flas...', 480)

                  11 vendor/laravel/framework/src/Illuminate/Session/Store.php(128): IlluminateSessionCacheBasedSessionHandler->write('5rr44TBjIPEgJSx...','a:1:{s:6:"_flas...')

                  12 vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87):IlluminateSessionStore->save()

                  13 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218):IlluminateSessionMiddlewareStartSession->terminate(Object(IlluminateHttpRequest),對(duì)象(IlluminateHttpResponse))

                  14 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189):IlluminateFoundationHttpKernel->terminateMiddleware(Object(IlluminateHttpRequest),對(duì)象(IlluminateHttpResponse))

                  15 public/index.php(58): IlluminateFoundationHttpKernel->terminate(Object(IlluminateHttpRequest),對(duì)象(IlluminateHttpResponse))

                  16 {main}

                  我使用的技術(shù)棧:

                  • PHP7.0
                  • Laravel5.5
                  • 操作系統(tǒng)(Debian GNU/Linux 9.6 (stretch)),9.6 版

                  我在 config/database.php 中嘗試了以下配置:

                  redis=>['客戶' =>'predis','選項(xiàng)' =>['集群' =>'redis',],'集群' =>['默認(rèn)' =>[['主機(jī)' =>環(huán)境('REDIS_CLUSTER_HOST','本地主機(jī)'),'密碼' =>env('REDIS_CLUSTER_PASSWORD', null),'端口' =>環(huán)境('REDIS_CLUSTER_PORT',6379),'數(shù)據(jù)庫(kù)' =>0,],],'緩存' =>[['主機(jī)' =>環(huán)境('REDIS_CLUSTER_HOST','本地主機(jī)'),'密碼' =>env('REDIS_CLUSTER_PASSWORD', null),'端口' =>環(huán)境('REDIS_CLUSTER_PORT',6379),'數(shù)據(jù)庫(kù)' =>0,],],]]

                  我也試過(guò) timeout => 0|5|60 但每次我都遇到同樣的錯(cuò)誤.

                  任何幫助將不勝感激!

                  解決方案

                  這在我們的環(huán)境中起作用:

                   'redis' =>['集群' =>真的,'客戶' =>'predis','選項(xiàng)' =>['集群' =>'redis','參數(shù)' =>['方案' =>env('REDIS_SCHEME', 'tcp'),'主機(jī)' =>環(huán)境('REDIS_HOST','本地主機(jī)'),'密碼' =>env('REDIS_PASSWORD', null),'端口' =>環(huán)境('REDIS_PORT',6379),'數(shù)據(jù)庫(kù)' =>0,'超時(shí)' =>15、],],'集群' =>['默認(rèn)' =>['方案' =>env('REDIS_SCHEME', 'tcp'),'主機(jī)' =>環(huán)境('REDIS_HOST','本地主機(jī)'),'密碼' =>env('REDIS_PASSWORD', null),'端口' =>環(huán)境('REDIS_PORT',6379),'數(shù)據(jù)庫(kù)' =>0,'超時(shí)' =>15、],],],

                  基于此處找到的信息:https://github.com/nrk/predis/issues/480 - 但還需要復(fù)制選項(xiàng)中的所有默認(rèn)"配置值 -> 參數(shù)組

                  REDIS_HOST,指向 AWS elasticache 的 redis 集群中的配置端點(diǎn).

                  I've setup redis-cluster on Amazon ElastiCache for cache, using Laravel 5.5 and Predis package, I get the following error.

                  PredisClientException: No connections available in the pool in vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php:337 
                  

                  Trace: PredisClientException: No connections available in the pool in vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php:337

                  Stack trace:

                  0 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(411): PredisConnectionAggregateRedisCluster->guessNode(153)

                  1 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(388): PredisConnectionAggregateRedisCluster->getConnectionBySlot(153)

                  2 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(550): PredisConnectionAggregateRedisCluster->getConnection(Object(PredisCommandStringSetExpire))

                  3 vendor/predis/predis/src/Connection/Aggregate/RedisCluster.php(593): PredisConnectionAggregateRedisCluster->retryCommandOnFailure(Object(PredisCommandStringSetExpire), 'executeCommand')

                  4 vendor/predis/predis/src/Client.php(331): PredisConnectionAggregateRedisCluster->executeCommand(Object(PredisCommandStringSetExpire))

                  5 vendor/predis/predis/src/Client.php(314): PredisClient->executeCommand(Object(PredisCommandStringSetExpire))

                  6 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(96): PredisClient->__call('setex', Array)

                  7 vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php(108): IlluminateRedisConnectionsConnection->command('setex', Array)

                  8 vendor/laravel/framework/src/Illuminate/Cache/RedisStore.php(93): IlluminateRedisConnectionsConnection->__call('setex', Array)

                  9 vendor/laravel/framework/src/Illuminate/Cache/Repository.php(195): IlluminateCacheRedisStore->put('5rr44TBjIPEgJSx...', 'a:1:{s:6:"_flas...', 480)

                  10 vendor/laravel/framework/src/Illuminate/Session/CacheBasedSessionHandler.php(66): IlluminateCacheRepository->put('5rr44TBjIPEgJSx...', 'a:1:{s:6:"_flas...', 480)

                  11 vendor/laravel/framework/src/Illuminate/Session/Store.php(128): IlluminateSessionCacheBasedSessionHandler->write('5rr44TBjIPEgJSx...', 'a:1:{s:6:"_flas...')

                  12 vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(87): IlluminateSessionStore->save()

                  13 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(218): IlluminateSessionMiddlewareStartSession->terminate(Object(IlluminateHttpRequest), Object(IlluminateHttpResponse))

                  14 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): IlluminateFoundationHttpKernel->terminateMiddleware(Object(IlluminateHttpRequest), Object(IlluminateHttpResponse))

                  15 public/index.php(58): IlluminateFoundationHttpKernel->terminate(Object(IlluminateHttpRequest), Object(IlluminateHttpResponse))

                  16 {main}

                  Technical stack I used:

                  • PHP7.0
                  • Laravel5.5
                  • OS (Debian GNU/Linux 9.6 (stretch)), Release 9.6

                  I tried the following configs in config/database.php:

                  redis=> [
                  'client'  => 'predis',
                          'options' => [
                              'cluster' => 'redis',
                          ],
                          'clusters' => [
                              'default' => [
                                  [
                                      'host' => env('REDIS_CLUSTER_HOST', 'localhost'),
                                      'password' => env('REDIS_CLUSTER_PASSWORD', null),
                                      'port' => env('REDIS_CLUSTER_PORT', 6379),
                                      'database' => 0,
                                  ],
                              ],
                              'cache' => [
                                  [
                                      'host' => env('REDIS_CLUSTER_HOST', 'localhost'),
                                      'password' => env('REDIS_CLUSTER_PASSWORD', null),
                                      'port' => env('REDIS_CLUSTER_PORT', 6379),
                                      'database' => 0,
                                  ],
                              ],
                          ]
                  ]
                  

                  I also tried with timeout => 0|5|60 but every time I get the same error.

                  Any help would be highly appreciated!

                  解決方案

                  This is working in in our env:

                      'redis' => [
                           'cluster' => true,
                  
                           'client' => 'predis',
                  
                           'options' => [
                               'cluster' => 'redis',
                               'parameters' => [
                                   'scheme'   => env('REDIS_SCHEME', 'tcp'),
                                   'host'     => env('REDIS_HOST', 'localhost'),
                                   'password' => env('REDIS_PASSWORD', null),
                                   'port'     => env('REDIS_PORT', 6379),
                                   'database' => 0,
                                   'timeout' => 15,
                                ],
                           ],
                  
                           'clusters' => [
                  
                               'default' => [
                                   'scheme'   => env('REDIS_SCHEME', 'tcp'),
                                   'host'     => env('REDIS_HOST', 'localhost'),
                                   'password' => env('REDIS_PASSWORD', null),
                                   'port'     => env('REDIS_PORT', 6379),
                                   'database' => 0,
                                   'timeout' => 15,
                               ],
                           ],
                       ],
                  

                  Based on info found here: https://github.com/nrk/predis/issues/480 - but needed to also replicate all 'default' config values in the options -> parameters group

                  REDIS_HOST, is pointing to the configuration endpoint in AWS elasticache's redis cluster.

                  這篇關(guān)于帶有 laravel 5.5 的 Predis“Aggregate/RedisCluster.php:337 中的池中沒有可用連接"的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)

                  <small id='9Whwo'></small><noframes id='9Whwo'>

                  <i id='9Whwo'><tr id='9Whwo'><dt id='9Whwo'><q id='9Whwo'><span id='9Whwo'><b id='9Whwo'><form id='9Whwo'><ins id='9Whwo'></ins><ul id='9Whwo'></ul><sub id='9Whwo'></sub></form><legend id='9Whwo'></legend><bdo id='9Whwo'><pre id='9Whwo'><center id='9Whwo'></center></pre></bdo></b><th id='9Whwo'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='9Whwo'><tfoot id='9Whwo'></tfoot><dl id='9Whwo'><fieldset id='9Whwo'></fieldset></dl></div>

                    <tbody id='9Whwo'></tbody>
                  • <bdo id='9Whwo'></bdo><ul id='9Whwo'></ul>
                    <tfoot id='9Whwo'></tfoot>
                          1. <legend id='9Whwo'><style id='9Whwo'><dir id='9Whwo'><q id='9Whwo'></q></dir></style></legend>
                            主站蜘蛛池模板: 亚州精品天堂中文字幕 | 区一区二区三在线观看 | 欧美精品一区二区在线观看 | 激情在线视频 | 黄色免费网址大全 | 99色综合 | 日韩欧美手机在线 | 亚洲欧洲在线观看视频 | 在线观看视频91 | 日本免费视频 | 欧美一区二区在线播放 | 欧美日韩久久精品 | 亚洲一区二区免费视频 | 欧美精品一区在线发布 | 真人女人一级毛片免费播放 | 国产精品毛片av | 久久国产欧美日韩精品 | 天天综合日日夜夜 | 亚洲视频在线看 | 国产高清美女一级a毛片久久w | 特级黄一级播放 | 人人叉| 国产精品18久久久久久白浆动漫 | 日韩性生活网 | 日本久草视频 | 九九视频在线观看 | 亚洲精品国产成人 | 欧美一级片a | 一级a爱片性色毛片免费 | 午夜在线视频一区二区三区 | 国产精品99久久久久久久久久久久 | 久久久久久亚洲国产精品 | 五月天婷婷丁香 | 精品欧美乱码久久久久久1区2区 | 成人深夜福利 | 国产成人午夜精品影院游乐网 | 免费av观看 | 国产精品高潮呻吟久久久久 | 激情a| 国产精品99久久久久久宅男 | 天天操天天舔 |