由买买提看人间百态

topics

全部话题 - 话题: server2
1 (共1页)
g***l
发帖数: 18555
1
我对FAILOVER比较糊涂
CLUSTERING,FAILOVER,应该不用改应用程序,FAILOVER应该是内部的,CLIENT看不出来
DATABASE MIRRORING 比如我有SERVER1-DB1 PRINCIPAL,SERVER2-DB1 MIRROR,SERVER3
WITNESS,用SYNCONOUS AUTOMATIC FAILOVER, AUTOMATIC FAILOVER是怎样的,是
SERVER1自动指向SERVER2的DB1么,不用改CLIENT应用程序?如果SERVER1 CRASH掉了不
存在了,SERVER2会自动变成SERVER1么,这个是要在WINDOWS里做的吧,不明白,AUTO
FAILOVER AUTO在哪里
如果是MANUAL FAILOVER又是怎么样做的
我想LOG SHIPPING的话,如果SERVER1 CRASH,要么RENAME SERVER2 TO SERVER1,要么
CLIENT指向SERVER2
有经验的指点一下吧。
m******2
发帖数: 1007
2
我需要实现一个forward request 基于server2的response
client request to server1(with HAproxy) -> server1 forward request to
server2 -> get server2 response, if condition meets -> talk to server3,
otherwise response to client -> if talks to server3, wait for response then
return to client
多谢前辈指点。网上没有找到haproxy复杂的例子。
d****g
发帖数: 1049
3
比如有两个并列的server来查字典,
server1存A-H, server2存I-Z的字。
client可以和server1相连,输入要查
的字,如果server1字典里没有,server1
把query直接传到server2去查,server2
把查到的结果送回server1, 然后server1
再把结果传给client.
我查了一下java.net.* API, 好像没有找到
server之间通讯的命令。
c*****m
发帖数: 1160
4
首先,有一个server1, 5个用户登录上去后都可以读/写 /home/pub 目录,权限777。
然后同一局域网内加了一个 server2,拷贝 /etc/passwd , group 等过去,5个用户的
uid完全相同.
任务:在 server2上面 mount server1的 /home/pub,这样在两台server上面都可以访
问同一个 /home/pub 目录,文件共享。
环境:两个都是 ubuntu 12.04 LTS server.
尝试1: NFS (native linux network file share) 。
不成功,因为整个 /home 都是加密的 (ecryptfs),而NFS不支持 ecryptfs (I learnt
it the hard way)
尝试2: 在 server1 里用 samba share 这个目录,在server 2 mount起来。
读写权限有问题。在server 2 用 user,credentials=/root/.smbcredentials 的方式
来放 用户名 test 密码 test 。mount 成功,读这个... 阅读全帖
h*******0
发帖数: 121
5
来自主题: JobHunting版 - 一道面试题求助
我朋友遇到的一道面试题,请问大家有什么好的idea,谢谢!
双机热备下的唯一序列号生成问题
两台server连接一台DB,做负载均衡
但是关于记录的唯一序列号(uniseq)要在服务器上计算出来,并不使用DB的
要求:
1、两台Server计算出的序列号必须唯一
2、两台Server计算出的序列号必须符合到达时间,即请求1到达Server1的时间如果早
于请求2到达Server2的时间,则Server1计算出的序列号肯定大于Server2
3、序列号是递增的
4、如果一台Server当掉后重启,可以接续继续生成符合上述条件的递增序列号
提示:
1、不能用时间戳
2、不能用cpu click
3、是个分布式计算问题
d******i
发帖数: 76
6
来自主题: JobHunting版 - 贡献几道A家intern的题
如果有带宽小的问题,那么就要结合binary search的思想。
In server 1.
XOR bytes between start and mid position,记录xor的结果,然后将start and mid
positions 这个范围传个server2.
在server2 上同对这个范围内的byte XOR
比较两个XOR的结果。
1. 相同,那么寻找mid + 1 to end 范围内的byte
2. 不同, 寻找 start to mid 范围内的byte
虽然这样double了XOR的次数,但是减少了传输的压力。
不知道这个思路是否和出题者的意图接近,请指正。
s*****d
发帖数: 21
7
来自主题: JobHunting版 - 贡献几道A家intern的题
和dafeilei的想法类似诶,Amazon发了篇论文Dynamo有提到:
Hash trees or Merkle trees
http://en.wikipedia.org/wiki/Hash_tree
==================
如果有带宽小的问题,那么就要结合binary search的思想。
In server 1.
XOR bytes between start and mid position,记录xor的结果,然后将start and mid
positions 这个范围传个server2.
在server2 上同对这个范围内的byte XOR
比较两个XOR的结果。
1. 相同,那么寻找mid + 1 to end 范围内的byte
2. 不同, 寻找 start to mid 范围内的byte
虽然这样double了XOR的次数,但是减少了传输的压力。
不知道这个思路是否和出题者的意图接近,请指正。
v**m
发帖数: 242
8
【 以下文字转载自 Database 讨论区,原文如下 】
发信人: vbnm (小兔不乖), 信区: Database
标 题: how to link to remote access database?
发信站: The unknown SPACE (Fri May 11 15:42:20 2001) WWW-POST
My web page is in server1. The access database is in
server2.
How can I connect to the database on server2.
Now I am doing is:
objConn.Open "DSN=testDB;UID=;PWD="
and the error message is:
"Microsoft OLE DB Provider for ODBC Drivers error '80040e4e'
Operation was canceled."
Any idea, how to solve it. Thanks so..... much!!!
BTW, the D
r****y
发帖数: 26819
9
来自主题: BuildingWeb版 - ../的安全问题
这是server本身的bug问题,与你在自己的网页链接里使用相对链接呢,还是使用绝对链
接呢,是两个完全不同的问题。
换句话说,如果server是Microsoft Index
Server2.0,就可能存在被人利用webhits.dll加上相对路径来获取系统信息,就算你在自
己的网页里不使用相对链接,也是一样的。
就是说,那是一个server系统自身的bug。而且仅仅针对webhits.dll这个文件的使用参数
而言。并不是说因为这个原因的存在,所有Microsoft Index
Server2.0上的网页使用../都会引起安全隐患,而这些网页不使用../也不说明就没有这
个系统隐患了。用户自己在URL敲入webhits.dll加上../等参数一样可以窥视系统。和你
使用什么链接方式无关。
如果系统因为这个把../给禁掉了,那是另一回事。DW里有路径的自动update功能,所以
也还是可以用两个site,到时候update一下路径就可以了。不过你想一下,现在有多少网
站用WinNT4.0,WinNT 2000.0做服务器?就算还是这些操作系统,这个bug想必也修复了吧



Se
v**m
发帖数: 242
10
来自主题: Database版 - how to link to remote access database?
My web page is in server1. The access database is in
server2.
How can I connect to the database on server2.
Now I am doing is:
objConn.Open "DSN=testDB;UID=;PWD="
and the error message is:
"Microsoft OLE DB Provider for ODBC Drivers error '80040e4e'
Operation was canceled."
Any idea, how to solve it. Thanks so..... much!!!
BTW, the DSN is system DSN.
v**m
发帖数: 242
11
来自主题: Database版 - how to link to remote access database?
I don't think there is any other program is using this
access file.
My web page is on server1, database on server2. And in order
to access to
server2, I assign a new user named IUSR_Server1, plus a
password(it's required).
However, when user visit server1 anonymously, they don't
have password at all.
So do you think that's the problem? Thank you so....much!!!
【 在 amnesia (Hua Hi Lo Ho) 的大作中提到: 】
w*******y
发帖数: 60932
s**********9
发帖数: 1238
13
来自主题: JobHunting版 - 一个关于network的问题
路由器是3层设备。SERVER2层封装的IP包到了R后要解封装才能知道IP是发向哪里的。
出了R后,要根据传输介质再封装2层帧,如果是点对点的FR,甚至没有MAC
所以路由器外,你只能知道SERVER的IP,不知道MAC的
s*******r
发帖数: 197
14
【 以下文字转载自 Database 讨论区 】
发信人: skyfisher (keep and forwarding), 信区: Database
标 题: 菜鸟急问一个关于用frontpage往数据库里写数据的问题
发信站: BBS 未名空间站 (Wed Jul 29 21:11:22 2009, 美东)
我不是搞数据库的,但是现在实习的老板突然让我给组里的一个数据库加点新东西,现
学现卖,最后还是遇到难题了。我的实习周五就要结束,希望能够把任务完成,留个好
印象啊。
Name Owner
server1 Mike
server2 Rich
server3 Mike,Rich
上面是我的一个表
我想用frontpage往数据库里写关于server的信息,在owner这里呢希望是数据库存储的
时候能innore这个一些空格的存在,
比如,不管用户输入“Mike,Rich" or " Mike, Rich ",
还有就是不管顺序也可以忽略,比如"Mike, Rich" or "Rich, Mike"
最后 select
p******e
发帖数: 31
15
来自主题: BuildingWeb版 - help, javawebserver一问
我在学校的unix server上安装了Java web server2.0
并且运行了httpd, 但是为什么浏览器不能浏览到homepage呢?
我用的是http://servername/~XXX:8080
用port 9090也不能访问到java web server的administration tool.
请各位帮帮忙,谢谢!
a*p
发帖数: 62
16
The simpliest way to make it working is mounting server2's
driver virtually as like G: in server1, and configure ODBC
on server1
this will cost lots of resources and it is very very slow.
Another way, I know there're some third part ODBC connecting
server which you might be able to use. Or maybe you can use
mySQL or something like SQL server.
y**a
发帖数: 152
17
来自主题: BuildingWeb版 - urgent!accessing remote database in asp.net
aspx runs on server1.needs to access a database on server2.anyone knows how to
do it?bow!
c***c
发帖数: 21374
18
来自主题: BuildingWeb版 - ../的安全问题
随便google上面搜索了一下,找到一个老的
14、NT Index Server存在返回上级目录的漏洞
问题描述
受影响的版本:Microsoft Index Server2.0 [WinNT4.0,WinNT 2000.0]
Index Sserver2.0是WinNT4.0 Option Pack中附带的一个软件的工具,其中的功能已
经被WinNT 2000中的Indexing Services所包含。当与IIS结合使用时,Index Server和Ind
exing Services便可以在最初的环境来浏览Web Search的结果,它将生成一个HTML文件,其
中包含了查找后所返回页面内容的简短引用,并将其连接至所返回的页面[即符合查询内容
的页面],也就是超级连接。要做到这一点,它便需要支持由webhits.dll ISAPI程序处理的
.htw文件类型。这个dll允许在一个模版中使用"../"用做返回上级目录的字符串.这样,了
解服务器文件结构的攻击者便可以远程的阅读该机器上的任意文件了。
漏洞的利用:
1)您的系统中存在.htw文件
Index Server
a*****a
发帖数: 438
19
来自主题: Database版 - how to link to remote access database?
how about use JET provider instead of "OLEDB Provider for
ODBC"?
your connection string would be
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=\\server2\someshare\test.mdb"
v**m
发帖数: 242
20
来自主题: Database版 - how to link to remote access database?
now I got the different error message:
Microsoft JET Database Engine error '80004005'
The Microsoft Jet database engine cannot open the file
'\\server2\someshare\test.mdb'. It is already opened
exclusively by another user, or you need permission to view
its data.
any clue?

很明显这个语句不能
s*******r
发帖数: 197
21
我不是搞数据库的,但是现在实习的老板突然让我给组里的一个数据库加点新东西,现
学现卖,最后还是遇到难题了。我的实习周五就要结束,希望能够把任务完成,留个好
印象啊。
Name Owner
server1 Mike
server2 Rich
server3 Mike,Rich
上面是我的一个表
我想用frontpage往数据库里写关于server的信息,在owner这里呢希望是数据库存储的
时候能innore这个一些空格的存在,
比如,不管用户输入“Mike,Rich" or " Mike, Rich ",
还有就是不管顺序也可以忽略,比如"Mike, Rich" or "Rich, Mike"
最后 select distinct Owner from table的结果是不能把上述输入当作两种不同的内
容。
现在的sql语句是
Owner")%>">
g*********0
发帖数: 80
22
finally finished installations of Oracle 11g R2 RAC on Oracle Enterprise
Linux 5 on VMWare Server 2. The complete screenshots are placed in one PDF
file in the following link:
http://clusterwhere.wordpress.com/
Welcome to critique and comment.
Thanks.
y****9
发帖数: 144
23
Good effort! Thanks for sharing.
Would be nice if doing some testing/simulations on the RAC to demonstrate
its features.
Previously I have done some test about load balancing on a 10g RAC, for
example:
http://oracle-study-notes.blogspot.com/2010/04/play-with-my-toy
v*****r
发帖数: 1119
24
Nice blog!
I configured a couple of 10g RAC (both are 2 node on Linux) last year to
host a sort of mixed but more DW intensive application. If I turn on LB (
either client side or server side), the performance got hit pretty bad due
to heavy traffic on interconnect (gigabyte switch). I have to disable LB for
for those 10g RACs to pass the performance testing. Now there are both
running well for about 6 month in production without LB. Maybe a bias, but
it seems to me disabling LB might be a best ... 阅读全帖
M*********e
发帖数: 190
25
Thank you for sharing.
You used Bridged network in the description, while the graphs showed NAT.
Which did you actually use?
Thanks.

PDF
v*****r
发帖数: 1119
26
Either bridged network or NAT is okay. The key is to use static ip instead
of dhcp.
g*******g
发帖数: 108
27
RAC has high demand for interconnect. enable jumbo frame on the dedicated
interconnect subnet helps with bandwidth related "waiting time".
RAC is good for a well tuned system. It could be performance killer for
poorly tuned application/system.
CINAOUG-- chinese Oracle User Group.
s********e
发帖数: 78
28
Urgent, need everyone’s help, any feedback will be very much appreciated.
SQL 2008 R2 Replication VS Mirroring Or other technology
Client need push data from each satellite server(10 regional server) to a
single repository in real time.
Requirement
1. Data transfer cross internet, low latency.(data volume low, shouldn’t
be a problem)
2. Each satellite server has only one db with identical name/layout, so
eventually the result should looks like
SourceServer SourceDB TargetServer ... 阅读全帖
h*****p
发帖数: 1516
29
来自主题: Database版 - VMware 2.02 安装在win8出问题了
手贱,买了个win8 64bit的机器跟这儿得瑟,装vmware server2.02,死活进不去
console。
看了service, 发现 vmware host agent没有启动。启动报错1075,把_VMware_user给
放成了管理员也不灵。重装也不管用。
放狗搜了也没看到什么有用的。请问哪位有过类似的经历?多谢先!
z**r
发帖数: 17771
d****g
发帖数: 1049
31
谢谢,我现在也是想这么做,可是调试了很久就是调不通。
比如我的两个server, port 12000给client, port 12001
给server1, server2之间通讯,
我现在开server之间通讯口是用ServerSocket(12001),
然后input, output stream都照server端做,可是死活
也不通,似乎server之间的连接根本没建起来。
k****f
发帖数: 3794
32
来自主题: Linux版 - vmware unity view很神奇阿
vmware server2怎么用?
安装之后,只有localhost:8333/ui的链接
j**u
发帖数: 6059
33
centos 4升级到最新的centos 5.4。过程简单,可是问题不断。我平生第一次在安装的
时候遇到一个窗口,告知遇到一个bug,不能安装。我这个电脑低手向来只知道配置
linux化很多时间,这次居然连安装都不成了,也算是开了眼。后来发现一装kde就出
bug,只好就装gnome了。后面的配置都很简单,就是两点很不明白,redhat居然在scim
里面打补丁禁用双拼,也不知道是版权问题还是和双拼有仇。vmware server2就更无聊
了,官方推荐使用RH enterprise linux,结果有冲突,要把glibc降级。搞完以后,居
然是在浏览器里面用,登陆的时候要帐号密码,我还以为要去vmware上面注册帐号,没
想到居然就是本机的帐号。用了一番非常的不习惯,最后还是用server 1了。
m******t
发帖数: 635
34
一般认为淘宝的商品之间没有关联性,很容易partition,比如堆1000台服务器,
server1负责手机,server2负责小家电之类的。
r***e
发帖数: 38
35
【 以下文字转载自 Programming 讨论区 】
【 原文由 roche 所发表 】
我有点confused,关于server authentication ,就说Java Web server2.0吧
它的doc里说,用authstore.exe create a self signed server certificates,
以后browser用https连接时,browser 会让 client add new server certificate to its
list of trusted certificates. 觉得很简单,是吗?
关于client authentication:
doc如是说
1。 Client request and import client certificate into web browser
2. Client retrieve and transmit client certificate to JWS
3.Server, place the client certificate in JWS
4.Server, enable
G***G
发帖数: 16778
36
来自主题: Software版 - 问个建网的问题
一个router 177.111.*. (域名: cool.tua.edu)
两个服务器 192.168.0.2 192.168.0.3
现在router已经forward80端口给192.168.0.2
请问可以把http://cool.tua.edu/server2/
forward给服务器192.168.0.3吗?
如果不想把网站内容放在一个机器上,如何能让两个服务器用一个router
提供http服务.
one router 177.111.*. (name: cool.tua.edu)
two local computers as servers: 192.168.0.2 192.168.0.3
Now port 80 has been forwarded to 192.168.0.2, one of two computers.
so if you browse http://cool.tua.edu//, you will be forwared to 192.168.0.2
however, can I let http://cool.tua.edu
w*r
发帖数: 2421
37
用过AWS没有啊?不要误导人家,AWS的那个效率开了HDFS/Yarn之后基本上就没有资源
了,AWS每个node本身的处理能力很弱的,如果楼主需要deploy/configure cluster,
基本上需要4-5个node, 每个node 16GB+ memory .
给你数一下
假设你有 N1 - N5
HDFS: N1 Name node , N2 standby name node, N3 - n5 data node
Yarn: N1 active resource manager, N2 standby resource manager, N2 history
server
Hive: HIve server2 N1
Hue : Hue server N2
Zookeeper: three servers N3-N5
Spark : N1 history server
oozie : N2 oozie server
sqoop 2 : TBD
Hbase: N1 Master, N2 master backup, N3-N5 region server, N1 Hbase... 阅读全帖
w*******y
发帖数: 60932
38
Mwave
D-Link DNS-323 2-Bay NAS Enclosure
$135 - $40 rebate:
http://www.mwave.com/mwave/spechr/rebates/3989315a.pdf
= $95 with free shipping
Next lowest on Google Products:
http://www.google.com/products/catalog?q=DNS-323&hl=en&cid=6051
#scoring=tp" target="_blank">Google Products is $150 shipped.
Description:
The D-Link DNS-323 2-Bay Network Storage Enclosure, when used with
internal SATA drives, enables you to share documents, files, and digital
media such as music, photos, and video wi... 阅读全帖
w*******y
发帖数: 60932
39
World cup Cricket Free online streaming
Link:
http://www.dealsmama.com/home/cricket
India vs Ireland
Following servers working..
Server1(hd)
Server2(hd)
Server4
Server6
Server7(hd)
Enjoy!
w*******y
发帖数: 60932
40
D-LINK 2-bay DNS-323 Diskless network storage enclosure 3.5" SATA gigabit $
95 f/s after MIR
Link:
http://www.mwave.com/mwave/SKUSearch.asp?px=DS&scriteria=398931
Description:
The D-Link DNS-323 2-Bay Network Storage Enclosure, when used with internal
SATA drives, enables you to share documents, files, and digital media such
as music, photos, and video with everyone on the home or office network.
Remotely accessing files through the Internet is also possible with the
built-in FTP server2. Wheth... 阅读全帖
w*******y
发帖数: 60932
1 (共1页)