AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-182247

kn330's questions

Martin Hope
kn330
Asked: 2013-09-10 03:25:15 +0800 CST

Amazon ELB 使用什么算法来平衡负载?

  • 15

我在官方 ELB 文档中找到了这个

默认情况下,负载均衡器将每个请求独立路由到负载最小的应用程序实例。

但是Newvem上的一篇文章说ELB只支持Round Robin算法

Amazon ELB 支持的算法- 目前,Amazon ELB 仅支持循环 (RR) 和会话粘性算法。

那么是哪一个呢?

[1] http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_StickySessions.html

[2] http://www.newvem.com/dissecting-amazon-elastic-load-balancer-elb-18-facts-you-should-know/?lead_source=popup_ebook&oid=00DD0000000lsYR&email=muneeb%40olacabs.com

amazon-web-services
  • 2 个回答
  • 30331 Views
Martin Hope
kn330
Asked: 2013-07-21 04:55:26 +0800 CST

Capistrano 错误“捆绑:未找到”

  • 2

我正在尝试在 VPS 上部署 octopress,但收到此错误bundle: not found但已安装捆绑包!

完全错误。

$ cap deploy
  * 2013-07-20 18:08:55 executing `deploy'
  * 2013-07-20 18:08:55 executing `deploy:update'
 ** transaction: start
  * 2013-07-20 18:08:55 executing `deploy:update_code'
    updating the cached checkout on all servers
    executing locally: "git ls-remote [email protected]:website.git HEAD"
    command finished in 8348ms
  * executing "if [ -d /home/deploy/ruby_apps/website/shared/cached-copy ]; then cd /home/deploy/ruby_apps/website/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard de26553c0aa7ea583e0bfdec2c103ba83adbb793 && git clean -q -d -x -f; else git clone -q [email protected]:website.git /home/deploy/ruby_apps/website/shared/cached-copy && cd /home/deploy/ruby_apps/website/shared/cached-copy && git checkout -q -b deploy de26553c0aa7ea583e0bfdec2c103ba83adbb793; fi"
    servers: ["mydomain.com"]
    [mydomain.com] executing command
^Acssh revers    command finished in 7161ms
    copying the cached version to /home/deploy/ruby_apps/website/releases/20130720123917
  * executing "cp -RPp /home/deploy/ruby_apps/website/shared/cached-copy /home/deploy/ruby_apps/website/releases/20130720123917 && (echo de26553c0aa7ea583e0bfdec2c103ba83adbb793 > /home/deploy/ruby_apps/website/releases/20130720123917/REVISION)"
    servers: ["mydomain.com"]
    [mydomain.com] executing command
    command finished in 1868ms
  * 2013-07-20 18:09:19 executing `deploy:finalize_update'
    triggering before callbacks for `deploy:finalize_update'
  * 2013-07-20 18:09:19 executing `bundle:install'
  * executing "cd /home/deploy/ruby_apps/website/releases/20130720123917 && bundle install --gemfile /home/deploy/ruby_apps/website/releases/20130720123917/Gemfile --path /home/deploy/ruby_apps/website/shared/bundle --deployment --quiet --without development test"
    servers: ["mydomain.com"]
    [mydomain.com] executing command
 ** [out :: mydomain.com] sh: 1:
 ** [out :: mydomain.com] bundle: not found
 ** [out :: mydomain.com] 
    command finished in 1431ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/deploy/ruby_apps/website/releases/20130720123917; true"
    servers: ["mydomain.com"]
    [mydomain.com] executing command
    command finished in 1387ms
failed: "sh -c 'cd /home/deploy/ruby_apps/website/releases/20130720123917 && bundle install --gemfile /home/deploy/ruby_apps/website/releases/20130720123917/Gemfile --path /home/deploy/ruby_apps/website/shared/bundle --deployment --quiet --without development test'" on mydomain.com

我做了谷歌并发现了cap shell然后我发现PATH变量可能不是以某种方式设置的

$ cap shell                                                                                                                                                         1 ↵
  * 2013-07-20 18:16:43 executing `shell'
====================================================================
Welcome to the interactive Capistrano shell! This is an experimental
feature, and is liable to change in future releases. Type 'help' for
a summary of how to use the shell.
--------------------------------------------------------------------
cap> echo $PATH
[establishing connection(s) to mydomain.com]
 ** [out :: mydomain.com] /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
 ** [out :: mydomain.com] 
cap> id
 ** [out :: mydomain.com] uid=1003(deploy) gid=1003(deploy) groups=1003(deploy),1005(rvm)
 ** [out :: mydomain.com] 
cap>

但是当我在 [email protected] 上 ssh

deploy@mydomain:~$ id
uid=1003(deploy) gid=1003(deploy) groups=1003(deploy),1005(rvm)
deploy@mydomain:~$ echo $PATH
/usr/local/rvm/gems/ruby-2.0.0-p247/bin:/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
deploy@mydomain:~$ grep source .bashrc
# sources /etc/bash.bashrc).
source /etc/profile.d/rvm.sh
deploy@mydomain:~$ rvm list

rvm rubies

   ruby-1.9.3-p429 [ x86_64 ]
=* ruby-2.0.0-p247 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

deploy@mydomain:~$ gem list bundler

*** LOCAL GEMS ***

bundler (1.3.5)
bundler-unload (1.0.1)
deploy@mydomain:~$ gem which bundler
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb
deploy@mydomain:~$ 

我不确定我到底错过了什么。我也尝试添加source /etc/profile.d/rvm.sh ,.bash_login但仍然没有运气。

bash
  • 3 个回答
  • 6047 Views
Martin Hope
kn330
Asked: 2013-07-20 01:37:46 +0800 CST

如何在所有节点中默认包含一个类?

  • 0

all默认情况下,如何在所有节点中包含此类?

我的 manifests/nodes.pp 中的片段

class all {

  case $operatingsystem {
    debian, ubuntu: {
      include hosts
      include ssh
    }
    default: {
      err("OS NOT supported")
    }
  }
}

node default {
  include all
}

node 'dobby' {
  include all ## << 
  include apache
  include logrotate
}
amazon-web-services
  • 1 个回答
  • 29 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve