question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
266,462
Trying to scale my dedicated server for high traffic
I have a quad core xeon, 8GB ram, and only 2 x 1TB SATA drives right now. I am trying to figure out how to scale my application to handle as much load and traffic per day as possible. I have an industry network site and it's currently bogging around 30,000 signup's in a day, 60k UV, and 600-1,000,000 pageviews per day....
There are a few things you can do and check to give you more information on the issue and, in turn, handle it better: You have to find out exactly what is making your server "slow". Is it maxing out the CPU, is it running out of RAM and using swap space, is it IO limited, etc...? Each of these have a different solution...
0
4
388
2011-05-04T23:32:46.590
database_errors
serverfault.com
891,505
Nginx ciphers settings
I am trying to understand ciphers settings in nginx. [CODE] But when it comes to the ssl_ciphers I don't understand the string. Like for example, what does [CODE] , [CODE] and [CODE] mean? Does the data that is transferred between the client and server go through a specific encryption chain, like for example [CODE] ? T...
This page gives some useful information. Here's a piece from the page that gives you a pretty good idea what it's doing Cipher Suites Choosing ciphers suites can be difficult and their names may look complex but they can be easily broken down into their components. Take the following suite: [CODE] The components are: [...
1
1
1,252
2018-01-10T07:15:26.727
infrastructure
serverfault.com
314,588
MySQL query missing data
I'm trying to query data from 3 MySQL tables in 1 database, filtered by fixed street name (Lucas st.), phone type (home/office/mobile) and address type (home/office). Also have to include rows with missing data (ex. someone has no mobile phone, still have to query that). Since FULL JOIN is not supported in MySQL, I tri...
[CODE]
0
0
206
2022-07-19T13:19:44.930
database_errors
dba.stackexchange.com
63,538
empty fields to be filled with previous values
In the above sample data, I have empty fields and now the task is to fill the fields with previous values. my columns are dates and the values are a number of items present for that particular article for the specific date. which would be a faster way to interpolate the missing fields. Any suggestions to build the func...
You can use fillna function with ffill method: [CODE]
1
2
283
2019-11-21T13:11:13.157
data_quality
datascience.stackexchange.com
823,169
Why is the Environment variable ClientName not updated during logon script?
I run a powershell logon script when opening RDS session on Windows 2012 R2 Server. I also run a powershell script in startup folder. When asking for [CODE] environment variable in the logon script, I get the previously opened session client name, not the current one. If I delete the registry [CODE] property before clo...
As Drifter104 says, in order to get the current value of [CODE] , it must be read from [CODE] If found two little PS functions that do the job at http://www.out-web.net/?p=1479 . To get the session ID : [CODE] To read the [CODE] Value : [CODE] Use : [CODE]
0
2
11,523
2016-12-29T10:32:18.640
data_quality
serverfault.com
271,489
Issues with MySQL 8.0.17
Recently we upgraded MySQL version on our UAT database server to 8.0.17 from 5.7.18. We are facing issues with our web application, Website is loading slowly if there are more users accessing it I mean even if 10-20 users open application simultaneously. We didn't face this issue when using the previous version of MySQ...
Rate Per Second = RPS Suggestions to consider for your my.ini [mysqld] section [CODE] You will find these changes will significantly reduce footprint and CPU busy. For additional suggestions, view profile, Network profile for contact info and free downloadable Utility Scripts to improve performance.
1
1
264
2020-07-23T11:57:30.940
api_errors
dba.stackexchange.com
1,044,251
Set up an email server on a VPS behind an Nginx reverse proxy
To start off, I am technically a hobbyist but I feel the topic of the question is more suited to here than say Superuser. If I'm wrong, I'm sure you'll all tell me. I have an Ubuntu VPS that currently hosts a website as well as some personal node.js projects (some of these are in docker containers, others aren't), all ...
As Michael is saying, you may want to consider using a separate VPS to avoid potential bad setup on your existing system. At the same time, if the existing VPS is not your livelihood, then it's certainly less of an issue. email is really difficult to setup properly no matter what when you install your own server. On my...
0
0
1,455
2020-11-28T17:38:03.643
pipeline_ops
serverfault.com
355,443
Making control flow explicit through printing instead of using comments?
I would have the opinion and good practices in script programming about using print statements to materialize the control flow (I usually use an anchor mark, then the name of the function just entered, and eventually the step number in the control flow). I usually then print crucial variable to check if all is going we...
This isn't really a "should" question. Does it work for you? Ok then do it. Scripts often have minimal debugging facilities so the old "printf" is jolly useful. Consider having a "verbose" mode and a "quiet" mode. If your programs get really complicated you're probably better off with a debugger (or perhaps just fix yo...
1
3
99
2017-08-10T12:53:15.667
data_quality
softwareengineering.stackexchange.com
1,064,148
Broken MySQL Installation, Cant Install or Uninstall
So, ive installed MySQL but in the middle my PC Decided to crash and the Linux Terminal died therefore cancelling the operation... Now when i try to install it i get this [CODE] Ive tried doing some steps like [CODE] But still cannot get working no matter what i try, if anybody could help me or point me in the right di...
To reinstall a package you can use [CODE] if there is some issues with reconfiguring the package you can use [CODE] And also check for error logs at var/log/mysql for logs files which may contain clues as to why mysql is not working
0
1
1,239
2021-05-19T19:27:27.900
database_errors
serverfault.com
833,657
how to exclude a range of ip adress when a site is access by 2 reverse proxy?
We host an application (app1) that is accessed by two reverse proxy (apache 2.2). Proxy A for internet users - no rules apply Proxy B for corporate users (ip adresses 10.* or 160.53.*) there are two exceptions where we want to exclude two ranges because they must use Proxy A 10.5.96.0/19 (mask 255.255.224.0) 10.126.* S...
There's a logic problem here. Remember that OR here got precence over AND . With the OR operator, in all languages, all members of the OR are evaluated one by one until one of them returns True (true is then returned) or until all of them are proved as False (false is returned). Your condition comes out as: [CODE] Does...
0
0
87
2017-02-20T11:04:38.743
infrastructure
serverfault.com
1,095,905
KVM Virt Manager + SPICE
I am trying to get SPICE-agent to work properly on a KVM Virtual Machine so I can share folders or copy paste from host to VM. I get this error when I try to enable it, even though I installed spice-agent on the host also. [CODE] [CODE] [CODE]
I think the relevant part of the error message is this: [CODE] Check if that directory exists and if it permits qemu access.
0
0
818
2022-03-11T06:20:24.957
infrastructure
serverfault.com
66,389
CREATE TABLE not issued on other masters
Database is created on all multi masters. Why CREATE TABLE doesn't being replicated to other masters. some explanations?
If you have MultiMaster Replication, every DB server needs this [CODE] This will tell a Slave to log completed SQL commands from the Relay Logs into the Slave's binary logs . Just add that option to every Slave and restart mysql. If this does not work, you may need to explain more things to us. Here are my other posts ...
1
1
87
2014-06-02T14:00:01.017
warehouse_errors
dba.stackexchange.com
1,115,419
How to trace NAT traffic (port-forwarding) from guest VM back to host
I have a host and guest Virtual-Machine (VirtualBox) with NAT Networking with the following network interfaces. How to trace traffic from local IP 10.0.2.15 i.e. guest's IP back to Host ? Host Ubuntu [CODE] Here 192.168.56.0/24 is the interface for VirtualBox Guest Also Ubuntu via VirtualBox VM [CODE] Virtualbox redire...
I assume that 192.168.68.104:2222 is opened by VirtualBox process (you may verify that with [CODE] ). To strictly answer your question - you may take a list of ports opened by VirtualBox (the incantation above) and sniff packets on them, however this only shows traffic initiated by the remote party. A better approach w...
0
2
345
2022-11-11T09:20:59.197
infrastructure
serverfault.com
126,584
SQL Server Management Studio crashes when attaching an mdf file
After the Windows 10 November update 1511, 10586 I cannot attach my databases with SSMS. It would just say that it has stopped working as shown below I checked the error log and so far this is what I've got 2016-01-19 02:35:46.19 spid51 Attempting to load library 'xprepl.dll' into memory. This is an informational messa...
[CODE] , I have gone through your Error log and find out two things which is as follows : [CODE] I would like to say that as [CODE] already comments it's related to os like [CODE] . So, as per above errors definitely we can say that it's [CODE] based errors. The SQL Server (MSSQLSERVER) service account and members of t...
0
0
4,906
2016-01-19T02:52:14.007
database_errors
dba.stackexchange.com
240,568
Should I follow the normal path or fail early?
From the Code Complete book comes the following quote: "Put the normal case after the [CODE] rather than after the [CODE] " Which means that exceptions/deviations from the standard path should be put in the [CODE] case. But The Pragmatic Programmer teaches us to "crash early" (p. 120). Which rule should I follow?
"Crash early" is not about which line of code comes earlier textually. It tells you to detect errors in the earliest possible step of processing , so that you don't inadvertently make decisions and computations based on already faulty state. In an [CODE] / [CODE] construct, only one of the blocks is executed, so neithe...
73
188
10,328
2014-05-20T07:02:14.853
api_errors
softwareengineering.stackexchange.com
101,183
Pagination performance, with subquery, inner join and where
I am trying to optimize following query (this is most simplified version I could came up with): [CODE] The problem is, query performance is directly proportional to OFFSET - for offset=0 query executes in 0.0s, but for offset=1000000 execution time is about 23s (and with even greater offset, it can take up to few minut...
I don't think you'll be able to get good performance while using [CODE] . The database must search through 1,000,025 rows of output from the inner query; even if you have a good clustered index on [CODE] the system doesn't know for certain that it can skip ahead to date X. But you do! Assuming this is for some kind of ...
6
4
5,636
2015-05-11T14:40:08.793
api_errors
dba.stackexchange.com
904,067
NTFS - writing small files performance variations
I have some test code that generates a list of 5000 small blocks of data (min. size: 351 bytes, max size: 386 bytes, average size: 385 bytes) and then writes them as separate files to a directory - average write time is around 5 msec per file If I use the same exact code but instead of writing the 5000 different blocks...
Windows versions since Server 2012 support data "deduplication". It is possible this is enabled on your system and if so the OS is detecting the duplicate writes and is allocating "pointers" to the common file system data. The effect of this would be that NT would only be updating directory blocks and not having to all...
2
1
587
2018-03-22T16:13:41.457
api_errors
serverfault.com
389,799
Configuring Internet links on different servers
In the company I work at we use two internet links which used to be balanced by a D-link router, but the router recently failed. To temporarily solve the problem I have set up one of the links internet on a Windows Server 2003 machine. Now I would like to take the 2nd internet link and assign it to our Windows Server 2...
The easiest way (and most efficient) of doing this is to connect both links to the same box. If you where happy with your d-link router, you can just install Linux on a box and use it as a Gateway for your company. I have used ClearOS and pfSense for that, the first one being the easier to setup.
0
0
67
2012-05-16T20:22:21.260
infrastructure
serverfault.com
113,716
Are there some good algorithms for implementing a Heap that minimizes fragmentation?
Right now I'm trying to create a Heap that requires 8-byte alignment, and was looking around online for some good methods that would minimize the amount of fragmentation. Less fragmentation is ideal, and even the ones that will slow down a lot are a consideration (but speed is also a sub-goal here) Has anyone had any e...
A coalescing heap will alleviate (but not avoid) fragmentation by coalescing adjacent free blocks. Whenever you free a block, look at the next and previous blocks in your list. If either (or possibly both) of them are free, then you can combine them to form one large block. Some implementations defer the coalescing unt...
3
2
742
2011-10-11T17:33:24.210
api_errors
softwareengineering.stackexchange.com
448,369
Handle data layer when using DDD
Since March I switched jobs and became the Tech Lead of two teams that work on a shared codebase and a separate codebase for "region" specific implementations. This team works using NestJS, which encourages a sort of Onion Architecture / Hexagonal Architecture + DDD. At first, I saw this as an overengineered approach, ...
I think this is going to be hard to answer without knowing your full solution, which is prob going to be way to long to explain. But. When saving a domain object, we serialize the whole object as a SQL instruction (using TypeORM repositories) where we unnecessarily save the whole object rather than its "diff". This rin...
1
4
155
2023-10-29T17:34:50.117
api_errors
softwareengineering.stackexchange.com
1,109,508
Nginx upstream to same server with different bind interfaces
I have nginx running on a host with two different network interfaces. There is a single upstream host which I can connect to via one local interface at a time. This situation is due to the underlying network routing, traffic will flow over one of two different network paths. I need to bind each server in the upstream t...
Figured it out. If the host is configured to route traffic over interface 1 by default then my edited solution without the top level [CODE] will have the desired effect. I checked the host routing with: [CODE]
1
0
451
2022-08-30T21:27:10.600
database_errors
serverfault.com
601,129
Clustered instance - kerberos double hop woes
We've recently migrated our virtualised SQL databases to a bare metal solution in an active/active cluster. Everything is working great except SQL Reports. Ok, so a rundown of our setup here as it relates to SQL and Reports: XXYYSQ01 is our old virtual SQL server, now running Reporting Services. XXYYSQ1 is a new SQL se...
Found it - the solution is to give the service account access to create its own SPNs. To do that, simply grant SELF to read and write the servicePrincipalName field: Once you do that, you'll need to restart the SQL service. DO NOT USE THE SERVICES SNAP-IN WITH CLUSTERED SQL SERVERS ! The Failover Cluster service will t...
0
1
819
2014-06-02T07:16:16.680
data_quality
serverfault.com
16,344
NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized
We have a cluster with 4 worker nodes and 1 master, and the flannel CNI installed. 1 kube-flannel-ds-xxxx pod running on every node. They used to run fine, but 1 node suddenly entered NotReady state and does not come out of it anymore. journalctl -u kubelet -f on the node constanly emits "cni plugin not initialized" [C...
Found the cause in journalctl of containerd. [CODE] The Ready machines did not have /etc/cni/net.d/10-flannel.conf so I just removed the /etc/cni/net.d directory and the network device cni0 that was created by the container network interface. [CODE] Then restarted containerd and the flannel pod. Now the node is ready a...
3
6
21,837
2022-07-25T12:52:24.740
pipeline_ops
devops.stackexchange.com
1,081,772
Single Windows 10 Pro Machine can't access network shares
I have a home network, with a ZyXel NAS drive. On this network, 2 Windows 10 PCs can access various shares, including on the NAS. But one Windows 10 Pro PC, cannot access any network shares. If I issue a Net use command: [CODE] When using Explorer, I get the message: [CODE] I see no additional information in the event ...
It looks like you have a networking issue with your Windows 10 Pro pc. Could you try running a command prompt ( [CODE] ), and issuing the command [CODE] , and showing us the output? Could you also provide us with some basic network info? Like, IP range, DNS server settings, router IP?
-2
1
760
2021-10-26T17:01:39.820
infrastructure
serverfault.com
54,748
MySql One-to-zero to one-to-one
I have a table Persons with [CODE] as [CODE] and [CODE] . Then I have a table [CODE] with [CODE] as [CODE] and [CODE] to the [CODE] [CODE] . But now person can exist without an address, and I don't want a person to exist without an address. I am looking for a standard way to solve this problem. I am using [CODE] and [C...
You have many state changes you want to happen in order for your interaction to be considered a success. This pretty much defines the "atomic" goal of a transactions. [CODE] This ensures that if there was an error any where along the way all transaction activity is rolled back. It's an "all or nothing" operation so you...
0
0
344
2013-12-09T21:28:20.230
database_errors
dba.stackexchange.com
663,108
GnuPG::Interface fails to install on CentOS 7
I'm trying to install a CentOS 7 server to run Request Tracker. By running [CODE] I can see all missing packages and [CODE] is supposed to install this packages. There is one package that I can't install ( [CODE] ). This package is used by Perl. I already tried to install it by [CODE] and [CODE] , but everytime I get a...
I too am installing RT in CentOS7, and solved as following. execute [CODE] instead of [CODE] then do [CODE] (I'd run [CODE] as well) in addition [CODE] had also executed when [CODE] told "XML::RSS >= 1.05 ...MISSING". After this [CODE] succeeded beautifully.
3
6
5,453
2015-01-28T16:48:09.053
infrastructure
serverfault.com
176,304
PHP5, curl, PostgreSQL, SSL, and segmentation faults (ubuntu 10.04)
This ONLY happens over SSL.. When I load my PHP extensions like so: [CODE] I see segmentation faults like [CODE] It seems to be between postgres (pgsql) and curl. Commenting out curl and everything works fine- but, I need curl. I Googled a bit and this seemed to be an older issue that had been resolved, but it's happen...
This infuriated me to no end and wasted so much of my time and ended up being related to Ubuntu 10.04 / libssl / mod-curl. More info and a patch here . HORRIBLE!
0
1
877
2010-08-30T23:28:17.177
database_errors
serverfault.com
323,385
ha-proxy smtp source ip
I have haproxy in transparent mode to load balance two mail server. I have a problem with outgoing mail messages. The receiving party see that the IP of our mail server is the ip of haproxy and not the server itself. I need suggestion how to fix this because other mail server block our email because they category it as...
This is how haproxy works. You can't use the IPs of the hosts behind the proxy IP. So you cant even change this. You have to fix the underlaying Spam problem. And the classification of "Spammer" depends only to 5% on the IP. Do you really think that using 68.138.x.x instead of 68.128.X.X will change the spammyness? Con...
0
2
4,448
2011-10-20T17:33:32.683
infrastructure
serverfault.com
307,402
storing altitude/height with MySQL geometry
We are using MySQL [CODE] data type to store polygons, polylines, multi-polygons and multi-polylines. We have come across the need to store depth/height data along with some of these features. My first thought was to store this data as altitude, but then on looking at the docs I found that MySQL/MariaDB does not suppor...
What operations will you do with the data? Especially the altitude? If it is just extra info, simply have another column, [CODE] , of type [CODE] or [CODE] , depending on the precision needed. If you are computing distances in 3D or trying to do 3D "CONTAINS", then MySQL's [CODE] won't help. "... order of coordinates ....
0
0
248
2022-02-12T22:55:24.040
database_errors
dba.stackexchange.com
51,945
Capture max used bandwidth
I have a Windows Server 2003 that I'd like to measure the max used bandwidth. I'd like to have a report showing the peak bandwidth on an hourly and daily basis. Can I do this using Performance monitor somehow?
Performance Monitor can capture to various file formats (with the advantage that this can be done without an interactive session needed). This can include CSV which can be loaded into (say) Excel and then processed. To set this up: From Start | Run enter PerfMon Select Performance Logs and Alerts | Counter Logs Action ...
1
1
138
2009-08-09T09:35:55.500
infrastructure
serverfault.com
972,388
Postfix - block by sender email domain ip
For some time now I receive a lot of spam emails. The emails are all different but if I lookup the domain of the email address it always resolves to the same IP address. So: xyz@domain1.tld -> resolves to 80.249.161.131 ddfda@domain2.tld -> resolves to 80.249.161.131 etc. In postfix I can reject each email address but ...
I believe this is what you are looking for: http://www.postfix.org/postconf.5.html#check_sender_a_access Add smtpd_sender_restrictions = check_sender_a_access hash:/etc/postfix/sender_a_access in your [CODE] and add 80.249.161 REJECT in your [CODE] and call postmap /etc/postfix/sender_a_access This will block the whole...
2
1
4,429
2019-06-21T11:43:34.067
infrastructure
serverfault.com
593,757
Office 365 and Exchange 2010 in Hybrid Deployment, Using Office 365 as Backup
We currently have an Exchange 2010 server on AWS. We want to migrate to Office 365, and have a free non-profit subscription. We are not ready to make the move yet to Office 365 but need a better backup solution (we currently only have AMI images on Amazon, which are costly, and are a temporary fix to a larger issue) th...
DISCLAIMER: While the below "should" work...I'd be cautious about undertaking it as your "backup" solution, as that's not what it is designed for. Because you haven't setup O365 at all, in theory you could do the following, assuming you plan on going to O365 within 60 days (I believe that's the limit): Setup O365 for a...
1
3
1,327
2014-05-07T20:17:12.983
pipeline_ops
serverfault.com
407,155
Anti-spam: allow only authorized SMTP servers
Spam is a huge problem these days, especially spam sent with your e-mail address as the sender. I think I have a simple solution but I'd like to hear from you what is wrong with it or why it is infeasible. My idea is that a recipient server checks if the IP mentioned in the sender is the registered, or authorized, SMTP...
Take a look at SPF , it's pretty much what you're describing.
1
5
120
2012-07-12T15:08:17.817
infrastructure
serverfault.com
1,031,636
Kubernetes services timing out on accessing pods on different workers
I'm trying to stand up a pair of kubernetes workers on EC2 instances, and running into a problem where the service does not appear to "see" all of the pods that it should be able to see. My exact environment is a pair of AWS Snowballs, Red and Blue, and my cluster looks like [CODE] , [CODE] , and [CODE] [1]. I'm deploy...
It is hard to simply say what might be wrong here but there are some steps you can take in order to troubleshoot your issue: Debug Pods , especially check if there is something suspicious in the logs: [CODE] [CODE] Debug Services , for example by checking: Does the Service exist? Does the Service work by DNS name? Does...
1
0
7,533
2020-08-26T19:42:22.143
pipeline_ops
serverfault.com
859,443
DNSMASQ eth0 doesn't get an ip address
The information below show's the current contents of my /etc/network/interfaces, /etc/dnsmasq.conf, iptables-save output and /proc/net/ipv4/ip_foward files. From the ifconfig -a information (shown last) you can see that the ETH0 adapter is getting a 169.254.62.167 address instead of an address on the 172.24.1.x network...
Better way to make this configuration, to make bridge br0 with eth0 and wlan0. Then configure 172.24.1.1 on interface br0, after this you'll have IP address 172.24.1.1 on both interfaces eth0 and wlan0. There is good answer or article with examples.
0
0
1,659
2017-07-05T10:08:33.267
infrastructure
serverfault.com
1,012,883
IIS rewrite rule to black-hole URL's with an apostrophe
I bought a web app that does not use special characters. In reviewing my logs, I am seeing probing by threat actors who attempt to see if my site is vulnerable to SQL injection by adding apostrophes and other char() characters that are never normally used. I trust the security of my app (mostly), but wanted to see if a...
Something like this? It will weed out some of the nastier SQL characters. [CODE] This will abort the request if any of the characters [CODE] appear in the query string. No SQL Injection rule
2
2
412
2020-04-18T05:44:33.270
infrastructure
serverfault.com
743,483
Transparent HTTP/HTTPS domain filtering proxy
I want to set up a transparent HTTP/HTTPS proxy to filter outbound requests based on destination hostname (domain). The proxy itself should be non-intrusive and just forward traffic, not decrypt/modify it. In case of HTTPS it should use the TLS SNI extension to extract the hostname without decryption. Multiple clients ...
What you need is possible with squid starting at version 3.5, because you require feature 'peek-and-splice' introduced in that version. Your action called "peek": http://wiki.squid-cache.org/Features/SslPeekAndSplice . Use something like: [CODE] [CODE] makes the proxy transparent. I am not sure about third requirement ...
4
3
10,658
2015-12-16T16:58:14.967
infrastructure
serverfault.com
9,047
Dynamic temporary index creation
In my undergrad databases course, my professor mentioned that some DBMS software is so advanced that it can detect when a long-running query would benefit from an index. The DBMS can then create that index for the duration of the query to increase performance. However, I don't think that's possible, and some initial Go...
Hardly "so advanced"; this is quite a common feature. Your professor is behind the times! :-) SQLite is one of the simplest databases, yet see section 11 on this page . Since the cost of constructing the automatic index is O(NlogN) (where N is the number of entries in the table) and the cost of doing a full table scan ...
5
6
173
2011-12-12T00:11:28.597
warehouse_errors
dba.stackexchange.com
253,813
No Send As permission after migrating mailbox from Exchange 2007 to Exchange 2010
I'm in the middle of migrating to Exchange 2010 after finally getting everything in the event log cleared up I migrated one users mailbox, and of course, there is an issue. Any time the user sends HTML emails, they are stripped and the recipient receives a blank email (inside and outside organization, tested multiple a...
If the user has ever had domain admin rights then inherit permissions may be unchecked. Ensure the ADUnC "view > advanced" option is enabled and look under security tab for that user for advanced and ensure inherit is checked.
0
2
3,411
2011-03-30T19:16:37.807
infrastructure
serverfault.com
116,494
Is there a way to optimize sorting by columns of joined tables?
This is my slow query: [CODE] Average query time is 4.5s on my dataset and this is unacceptable. Solutions i see: Add all columns from order clause to [CODE] table. But i have ~10 order types in application, so i should create a lot of columns and indexes. Plus [CODE] have very intensively updates/inserts/deletes, so i...
Reviewing your table definitions shows that you have indexes matching across the tables involved. This should cause the joins to happen as quickly as possible within the limits of [CODE] join logic. However, sorting from multiple tables is more complex. In 2007 Sergey Petrunia described the 3 [CODE] sorting algorithms ...
11
6
4,414
2015-09-29T17:35:15.973
database_errors
dba.stackexchange.com
264,958
Cached MX records from Network Solutions..?
The two emails: new_email@website.com ( Previously Network Solutions, now a Google Apps account ) other_email@other_website.com ( A Network Solutions email account ) I changed my MX Records for new_email@website.com about 7 months ago to point to Google Apps. Everything works swimmingly, however : If I set the mail for...
My guess is that it isn't an MX problem as much as NetSOL still has website.com configured in their mail servers, and when other_website.com goes to forward, it bypasses the MX lookup as it is local. ONly way to fix it would be to get in touch with NetSol and ask Them what is going on. Not sure if there is some way in ...
0
4
267
2011-04-28T19:02:19.320
infrastructure
serverfault.com
197,397
Correct/Optimized Binding of Open Directory clients?
I have have three locations with an OD Master in our primary location and OD Replicas in each off-site location. I've always bound clients to our OD Master because the Open Directory Admin documentation says: "The LDAPv3 plug-in fully supports Open Directory replication and failover. If the Open Directory master become...
A client should be able to use any replica (or the master) in the tree, no matter which it was explicitly bound to. Generally, they'll prefer the one they were bound to, and if that's not available they'll try the others in the order they were added to the tree (i.e. master first, then the first replica that was create...
2
1
917
2010-11-02T18:32:36.173
database_errors
serverfault.com
344,705
Nginx cached page returning binary data(.gz file) every now and then. Works when cached folder is deleted
I have an nginx server running as a proxy. A page from it is configured to be cached and served compressed. But then every now and then it serves the page as .gz file which shows as up a file to be downloaded. A curl –I hit returns binary data. [CODE] But when I deleted the cache folder everything starts working fine. ...
Is this behaviour visible with a web browser or only curl? Because I don't think curl will deflate by default, hence you getting binary data. Try the following: [CODE]
2
0
787
2011-12-28T15:07:01.337
infrastructure
serverfault.com
39,822
Streaming Replication Failover - how to point second slave at new master?
I have a Postgres database HA cluster I've set up in a lab. I'm using PgPool-II to manage fail-over. For the cluster itself, I have three identical Postgres 9.2 servers set up like so: Server A - Master DB Server B - Slave DB with synchronous Streaming Replication Server C - Slave DB with asynchronous Streaming Replica...
In PostgreSQL 9.2, you should be able to just repoint server C to B by changing it's recovery.conf file, if you are also using log archiving (and have a restore_command defined in your recovery.conf). It should work automatically - but it does require the log archive to work (machine B will send critical information ab...
5
3
2,109
2013-04-12T12:16:32.227
database_errors
dba.stackexchange.com
140,696
Network Monitoring Tool Recommendation
Possible Duplicate: Network Traffic Monitoring Hello, My company is looking for a monitoring app/tool that would allow us to capture and graph statistics on network performance. As a starting point, we would like to ping remote host(s) and gateway(s) from several of our servers, grab an average of the ping times from e...
zabbix for alerting and trend-plotting, nagios for alerting + nagios grapher for trend plotting, munin - for trend plotting. nagios + munin [as two separate setups] are tool of choice for me. from things i've never tried: opsview and centreon .
1
3
450
2010-05-11T15:33:25.270
data_quality
serverfault.com
853,317
Windows 2016 Essentials and RDS
I can not get Licensing issue resolved on Essentials server for Remote access. While I'm familiar with Windows server, I"m less familiar with the Essentials SKU. The user has deployed Windows 2016 Essentials and completed the Access Anywhere wizard. It appears to deploy all the RDS roles, it configures it for per-user ...
Essentials will not work with the RDS roles at all, with the exception of RD Gateway. MS Support pointed me to the Server 2012 Licensing page, and referenced the fine-print, where is says "(8) Only the RD Gateway role service is installed and configured, other RDS role services including RD Session Host are not support...
0
2
5,543
2017-06-01T01:59:55.320
pipeline_ops
serverfault.com
320,177
Organizing maven modules and spring profiles
I'm facing a design problem with Spring's profile and Maven multimodule project from which i'm building a product, as a web as application that can be customized for differents clients. For this i need quite some organization of my code, this is why i'm seaking advises on how to organises my profiles around my code. At...
I would not recommend to put multiple build targets in single Maven project and perform the app customization during build via Spring profiles. This solution is hard to support, because it has reduced visibility of the functionality belonging to specific application/execution context. Plugin architecture would be bette...
5
2
1,964
2016-06-03T08:24:14.137
database_errors
softwareengineering.stackexchange.com
681,087
Changing the path that the Microsoft Deployment Toolkit uses with WDS
I'm a system administrator for a hosting company, and we're looking to integrate the Microsoft Deployment Toolkit into our existing WDS setup for automating our client VM setups. I've already configured MDT and the task sequences for what we're looking to do, and we have WDS setup with our fully sysprepped and captured...
Well, I answered my own question. After doing some more digging, I found that MDT determines if it was booted via WDS or not by means of its ZTIGather.wsf script. The file is located at: [CODE] In this file, there is a section of code that checks to see whether or not it booted via PXE. In particular, one line reads th...
0
0
1,029
2015-04-07T21:20:15.067
pipeline_ops
serverfault.com
463,523
Unable to create zip files with shell.application
The following example doesn't seem to work on my Windows Server 2008 SP2 nor my Windows 7 Pro Sp1. Command: [CODE] Output: [CODE] Command: [CODE] Output: No output? (I'm assuming it didn't work and $zipfile is null) Command: [CODE] Output: [CODE] I've tried to re-associate [CODE] with the instructions: How to restore W...
This is not creating a new zip file. This is adding files to an existing zip file. In your example, C:\temp\file.zip must already exist. edit: [CODE]
0
1
503
2013-01-06T22:42:56.523
database_errors
serverfault.com
822,900
How to correctly set up routing on machine with 4 interfaces so that three of interfaces are on the same subnet?
So I have a linux machine with 4 interfaces: enp1s0 enp2s0 enp3s0 enp4s0 What I would to do is have enp1s0 be the WAN interface and acquire its ip address, dns and gateway via DHCP. For the other three interfaces, I would like them to have: IP addresses on the same subnet Have all hosts on one LAN interface be able to ...
You're on the wrong track altogether, and it doesn't have anything to do with Shorewall (or really any other firewall package) but rather IP networking in general. If you imagine that a given IP host has three interfaces in the same subnet and a packet arrives for that subnet from the fourth, how does that host know wh...
0
1
1,159
2016-12-27T17:27:59.987
infrastructure
serverfault.com
130,698
Postgres odd behavior with indices
I've got a [CODE] table with ~200M rows or so, with indices on both [CODE] and [CODE] . I need to execute queries like "return all sites with data" and "return all parameters with data". The [CODE] table has only 200 rows or so, and the [CODE] table has only 100 or so rows. The [CODE] query is fast and uses the index: ...
Removing the [CODE] in the sub query fixed the problem. More discussion on S.O.
1
0
42
2016-02-28T01:20:50.163
database_errors
dba.stackexchange.com
53,151
SQL join query to show rows with non-existent rows in one table
I am trying to get some reporting done for employee time records. We have two tables specifically for this question. Employees are listed in the [CODE] table and each day they enter time entries of work they've performed and is stored in the [CODE] table. Example setup with SQL Fiddle: http://sqlfiddle.com/#!3/e3806/7 ...
Thank you for SQLfiddle and sample data! I wish more questions started this way. If you want all members regardless of whether they have an entry for that date, you want a [CODE] . You were very close with this version however a little trick with outer joins is that if you add a filter to the outer table in the [CODE] ...
13
12
63,919
2013-11-11T23:59:22.917
bi_errors
dba.stackexchange.com
423,155
Design suggestions for my simple data-analysis program
I need to create a program with the purpose of cross-referencing personal info from a spreadsheet(s), to check for conflicts of interest between clients of 3 different law firms. All of this client data will originate from 3 different spreadsheets using the same template for naming/columns. I plan to write this in Pyth...
Blackboards and Advisors Its probably a good idea to keep the spreedsheets in a generic data representation (kind of like a json data model, but for the kind of input documents you want to process). This generic data representation is a Blackboard. Create a blackboard per data source. Advisors on the other hand are sma...
-1
0
97
2021-03-08T16:15:55.583
data_quality
softwareengineering.stackexchange.com
74,839
Ruby on Rails Development Process
We are a small team that is about to start developing a localized version of a successful US web app in Korea, using RoR. Our question is: What process would you recommend we use to go about developing the app? Should we start with the data models? The views in HTML and then code them? Take a single feature, develop it...
I'd recommend the behaviour driven development pattern, If your not familiar let me give you an overview: Start at the nuts and bolts the "elevator pitch" of the application.. "What is this thing we're building? What value does it bring?" And then pick the absolute minimum requirement "feature" and start "specing" it o...
8
2
1,153
2011-05-09T10:17:02.163
pipeline_ops
softwareengineering.stackexchange.com
918,079
can we mix MTU values in cluster
we have hadoop cluster ( all machines are linux redhat machines version 7.x ) on the VM machines we set [CODE] and all other machines we set [CODE] we set on VM [CODE] because we saw some network problems with [CODE] My question: dose mix of [CODE] and [CODE] is a problem ?
All recent OS versions use Path MTU Discovery (PMTUD) so I think you should be fine. On the other hand, the general recommendation is to set the same MTU to eliminate one potential problem. What makes you avoid using 8900 bytes on the other machines?
1
1
111
2018-06-25T12:11:24.843
hadoop_errors
serverfault.com
802,318
Long Tomcat start up times
We are currently deploying our in house program on two different servers. Both of these servers built within Cisco Openstack. OS Centos 7. The issue is, that with every redeploy of the app, we need to restart tomcat; shutting down tomcat is behaving as expected. When we start tomcat, the server is unresponsive for 10+ ...
I have found that the issue had something to SecureRandom. Here was my openstack machine: [CODE] Here is my error on a vagrant machine: [CODE] This was remedied by executing the following command: [CODE]
0
1
1,808
2016-09-10T18:47:56.033
infrastructure
serverfault.com
158,776
Postgres requested WAL segment has already been removed (however it is actually in the slave's directory)
I am using [CODE] as my replication tool. On the slave I keep getting an error: requested WAL segment has already been removed When I check the Master indeed it is not there; however, it is in the slave's directories both in [CODE] and [CODE] . I can't understand why it would be looking for this file if it's already in...
I simply took a gamble and copied the one file back to the master which was missing. It worked i still don't know what caused the issue.
7
2
27,838
2016-12-21T08:39:14.957
database_errors
dba.stackexchange.com
246,090
Is OAuth suitable for this scenario?
I need to create a simple web application for track expenses, with some basic actions (user must be able to create an account and log in, list expenses, edit them, etc) with a REST API for each one, and the trick is that I need to be able to pass credentials to both the webpage and the API. So, after some research I've...
OAuth 2 is a token-passing scheme. There are several different ways you can get an OAuth server to grant you a token. Once you have the token, you pass it into the service (over SSL, to protect it), and if the token is good -- and not expired -- then you can get the page or information you want. The token-passing schem...
1
0
296
2014-06-25T22:40:40.403
api_errors
softwareengineering.stackexchange.com
341,906
Block Scoped and Function Scoped Languages
I've noticed that some languages like C, C++, Java, Perl, and .NET Visual Basic have "block" scoping which means that a variable will only be defined within the specific code block it was declared in. For example (C++): [CODE] This code will fail to compile since [CODE] is only visible within the block scope created by...
In theory, function scope should actually be faster - variables are typically created in a stack frame, and function scope would only create that stack frame once, while block scope would need to repeadedly open up a new stack frame in every block. In practice, there are several facts that invalidate that initial assum...
4
8
1,511
2017-02-09T16:04:41.017
api_errors
softwareengineering.stackexchange.com
146,176
Cannot connect to Windows Server 2008 R2 Server Core remotely from Windows 7 using RSAT
I've installed Remote Server Administration Tools for Windows 7 to administer my Windows Server 2008 R2 Server Core machine. I get the following error message when trying to connect to the Server Manager : Connecting to remote server failed with the following error message: Access is denied. For more information, see t...
Resolved I had to run remote management tools under domain admin account. They connected just fine to my domain controller on Windows Server 2008 R2 Server Core. This was stupid, yet I learned something... ;)
0
0
1,424
2010-05-28T09:11:58.417
infrastructure
serverfault.com
303,298
What does running "show slave status" on a master server show?
We are using monitoring software that is throwing an error saying that [CODE] is returning [CODE] for replication on our master server. It is in fact true that when running [CODE] on the master server, that [CODE] shows [CODE] but [CODE] shows [CODE] . I understand that the [CODE] command needs to be run on the slave s...
MASTER / SLAVE REPLICATION In Master/Slave Replication, you should not have any output from [CODE] on the Master. If you see any output, it is more than likely stale and no longer needed. You can remove that with the following commands [CODE] After running these commands on the Master, you should get this from [CODE] [...
1
1
2,429
2021-11-30T15:02:36.877
pipeline_ops
dba.stackexchange.com
262,648
2 questions about TDD
I'm just starting to get to grips with TDD, and I have 2 quick questions; I'm assuming that if I were writing software for a software company, that TDD would work alongside the software design? i.e all the UML, ERD diagrams, flow diagrams etc... My second question is, the way I'm doing my tests at the minute, I think a...
TDD is primarily an implementation technique, so it works as orthogonal as writing other code to the "graphical" design techniques you mentioned. (If the latter techniques are used in all software companies, for all kind of professional software, is a completely different question.) When you have UML diagrams on the ab...
3
5
323
2014-11-13T08:56:50.103
api_errors
softwareengineering.stackexchange.com
73,717
How can I get alerts when my site is down?
My blog is a custom ruby/rack application, and has been crashing randomly every couple of weeks. I sometimes don't notice for days, and I'd like to be notified immediately if it happens. What's the best way to do it? I'm running Centos 5.3, Nginx, Passenger, Rack, etc. I've considered figuring out some way to email mys...
If you need an alert when your site goes down you should consider an online service for notifications: They will see the outside perspective. If you monitor from "inside your own box" you will never get an email if it crashes completely or looses its network connectivity because your script will not be able to run or a...
5
6
8,212
2009-10-12T16:33:29.687
infrastructure
serverfault.com
231,105
User unable to edit a subscription after migration of SSRS from 2008 R2 to 2017
I performed a migration of our SSRS 2008 R2 instance to a brand new SSRS 2017 instance. This was accomplished via Microsoft's documented instructions "Migrate a Reporting Service Installation (Native Mode)": Backup/Restore of the DBs, setup of the RSExecRole in the system DBs with permissions, import the encryption key...
After a week of mucking around with permissions and getting ready to place a support call with Microsoft, Bart Edgerton's final suggestion to me in the Slack SQL Server Community workspace gave the solution: I needed to give the user permissions to the folder containing the data source used by the report. It's a bit od...
1
2
1,944
2019-03-01T23:28:13.140
database_errors
dba.stackexchange.com
411,677
Zookeeper - cant telnet into xxx.xxx.xxx.xxx 2181 on one server. Any other - no issue
I have three zookeeper nodes in tokyo, london, and freemont on linode servers. All are gossiping. I have a monitoring server in tokyo. I have NOT activated the zookeeper firewall on all zookeeper servers. From my local dev laptop, aws, etc machine I can telnet into anyone of the zookeeper nodes. From linode, monitoring...
But you are connected: [CODE] Whether or not you get any initial communication from the server you're connecting to (a la SSH or SMTP) or the server is waiting for the client to start (HTTP) is a protocol specific issue. However the problem is (almost) certainly not a firewalling problem.
-2
5
2,460
2012-07-27T00:59:30.890
hadoop_errors
serverfault.com
221,098
Query for max CPU, Memory and System Queue length
I am looking for a query to find maximum CPU, Memory and System Queue length for last month. Any help would be greatly appreciated.
SQL Server doesn't store granular history going back that far. You have a couple of options: Option 1: Look at what's happening now. Run sp_BlitzFirst , one of the scripts in the open source First Responder Kit . It takes a 5-second sample of what's happening on the server right now, and gives you those metrics. Try ex...
-2
2
78
2018-10-26T13:13:39.643
warehouse_errors
dba.stackexchange.com
19,438
How is the salary for Data Scientist different among countries?
I would like to know the salary for Data Scientists by countries, but failed to find any resources on it. I know that US gives data scientists an insanely high amoung of money (well, it might not be "insanely high" on the standard of US), but I rarely hear about any other countries, possibly except UK, Canada, and Aust...
The biggest one I know is O'Reilly's survey (here the last available from 2016) . There are also polls on KDNuggets (older version) and other websites. But, in general, most of them are not very representative. You can also go look at the national averages on glassdoor.com (example India) or other job sites.
0
2
580
2017-06-02T21:02:49.763
data_quality
datascience.stackexchange.com
331,734
Finding the latest status
I have 2 tables [CODE] and [CODE] . The [CODE] table is the history table, and latest being the current one. The [CODE] and [CODE] have a one-to-many mapping. I need a optimized query to find the event and its current status. I am using MySQL btw. Eg: [CODE] ID NAME 1 Event 1 2 Event 2 [CODE] id event_id status created...
Groupwise-max is messy to query. Let's revamp the system to make it simpler. Let's change [CODE] to [CODE] and add columns for the current status of the event. Anc change the name [CODE] to [CODE] , since it really has the "history", not the "current status". [CODE] would be updated (actually use IODKU, so that the sam...
1
0
41
2023-10-01T09:34:24.543
database_errors
dba.stackexchange.com
289,423
Nginx simple redirect old uri to new uri
I've got problems with simple SEO friendly redirect. Web page has changed and I'd like to redirect old uris to new ones. For example I'd like to redirect /contact to /contact.html I've tried [CODE] But it seems's that it doesn't work and Nginx keeps passing request to Zend front controller (PHP). Here's my current conf...
I would do it easier and put it in the top of your / location [CODE]
0
0
1,010
2011-07-12T12:29:53.817
infrastructure
serverfault.com
216,959
How do I install SQL-Server Tools if I can't use curl?
Attempting to install [CODE] , I get [CODE] So, I go to add the repository, [CODE] But now I get an error about [CODE] , trying to install [CODE] [CODE] So in essence, you need curl to install [CODE] , and installing curl uninstalls [CODE] because sql-server is build with libcurl3, and [CODE] on Linux wants [CODE] . Wh...
14.0.3038.14-2+ New versions of SQL Server (14.0.3038.14-2+) no longer conflicts with [CODE] . Depends: libunwind8, libnuma1, libc6, adduser, libjemalloc1, libc++1, gdb, debconf, hostname, libssl1.0.0, openssl, python (>= 2.7.0), libgssapi-krb5-2, libsss-nss-idmap0, gawk, sed, libldap-2.4-2, libsasl2-2, libsasl2-module...
2
2
912
2018-09-06T23:34:43.097
database_errors
dba.stackexchange.com
1,106,319
Set up TigerVNC on Ubuntu 20.02 with systemd
I am trying to setup TigerVNC - or indeed any VNC server - on Ubuntu 20.04, and I am beginning to get frustrated, because none of the instructions I can find actually work, although I have got it to work on CentOS. This is what I want to achieve, and as I understand it, TigerVNC should be able to handle it: Offer VNC s...
Well, my answer is a little late, but I hope it will be helpful nevertheless. I had the same problem with Ubuntu 22.04 and I lost two days for finding a solution. Try this: Install TigerVNC, i.e. tigervnc-standalone-server on the server. Follow the guide for setting up the server, e.g. https://docs.01.org/clearlinux/la...
0
0
3,960
2022-07-22T14:01:38.017
infrastructure
serverfault.com
520,258
could not stat config file “slapd.conf” to add entries to LDAP
I got a problem when I adding some entries in LDAP [CODE] and here is the error could not stat config file "slapd.conf": No such file or directory (2) slapadd: bad configuration file! and /etc/openldap/slapd.conf [CODE]
I'm going to assume that the -f argument expects an absolute path to the file and interprets the path as relative otherwise. Are you running those commands from in /etc/openldap? Does using [CODE] work? Are you running the commands as a user that can read that file?
1
1
8,456
2013-07-02T17:06:57.983
infrastructure
serverfault.com
33,762
mysqldump not generating USE statement
I've got a small script which allows me to select a database, and a number of tables, then output them via [CODE] . Currently this does not include the [CODE] statement in the output file, something which I need to be included. Here's an example the dump command I'm using:- [CODE] I found this question here , which des...
Try putting the [CODE] manually [CODE] I can see the wisdom of not mixing the [CODE] command with select mysqldumping of tables. You do not want to risk creating database with the name of a production database. You also do not want the developer to become aware of not the database that will be the target. In this way, ...
4
6
2,482
2013-01-29T14:02:20.387
database_errors
dba.stackexchange.com
262,960
Scale a highly transactional SQL server
I’m looking to upgrade one of my site servers. The site currently executes around 20m sql queries a day and this is growing quite fast. Right now IO throughput is a real issue , so my idea is to move various databases onto their own disk pairs. My idea is to do something like this: Config Disk 1 & Disk 2 / Raid 5,6 or ...
No, all SSD's are not equal. The Intel G2 are quite good, and the Crucial RealSSD are good. However, the best performance is from the SSD cards that plug into PCI Express slots. The best of those currently have 1.4 TB/second (sequential) throughput. The common denominator is random write throughput. This is best measur...
0
2
211
2011-04-24T18:33:17.583
database_errors
serverfault.com
604,840
rewrite rule does not rewrite url as expected
I have a problem with a CMS website, that normally generates readable urls. Sometimes it happens that navigation links are shown as [CODE] , which results in an error, instead of [CODE] . I have not found a solution for this yet, but the page is working if the url is [CODE] . Therefore, I'm trying to rewrite [CODE] to ...
You can try this one, is working on my websites [CODE]
0
0
1,216
2014-06-13T07:23:52.770
infrastructure
serverfault.com
267,398
Alternative of GlusterFS for Hardware
When you look at my question title then you might think I am going to ask for alternative of GlusterFS in the space of storage,but what I am looking for the hint is basically I want to find software that can do the same like gluster but for clustering the power resources The idea is like virtualization pool.where we ca...
As far as I know, what you're looking for doesn't exist. There exist a plethora of really great clustering products, but they all require special considerations to be taken when writing and compiling the code.
2
1
430
2011-05-08T02:35:38.550
infrastructure
serverfault.com
139,840
In plesk 9.3.0, which php.ini is in use?
I have 3 (actually 4, but the 4th one is for installatron) php.ini files in my Virtuozzo Container running RHEL 5.x [CODE] which one do I use to change the MEMORY_LIMIT for a wordpress app running in the container 1003? Thanks!
The best way to tell is to call phpinfo() from a page in your application's docroot.
1
1
1,086
2010-02-02T13:44:15.680
pipeline_ops
serverfault.com
98,056
SSMS Registered Servers with ReadOnly Application Intent
We are working on SQL Server 2014 POC testing with AlwaysOn and one of the user asked about saving the configuration of SSMS with ReadOnly Intent using the registered servers in Local server group. This way they don't have to type in the alias name every time they need to access the ReadOnly replica. Unfortunately ther...
This has been fixed in SQL 2016 SSMS when using with registered servers. I was able to register a ReadOnly Intent connection as part of local servers group and open the saved connection for future use. Thanks for the help with this.
11
0
13,326
2015-04-16T15:27:25.023
database_errors
dba.stackexchange.com
245,937
What impact on the index storage size does overprovisioning of varchar types have?
Does over-provisioning [CODE] columns (as in using [CODE] to store values from 1 to 10 characters long vs using [CODE] ) have any impact on the index storage size and if yes than why? I recall reading a Q/A here about this but cannot find it using any of the terms which come to mind. I do not care about memory grants o...
Variable length columns only store the actual data present in the column. In other words, the defined length of a varchar column has no bearing on the amount of physical storage allocated. However, querying the data requires a memory allocation that is commonly calculated to be the number of rows expected multiplied by...
1
3
300
2019-08-21T22:01:42.833
warehouse_errors
dba.stackexchange.com
271,217
HP ProLiant system preparation/deployment techniques (Array, BIOS, firmware, etc.)
I spend a lot of my time with HP ProLiant systems and Linux installations. Due to the nature of the business I work in, I don't have the luxury of being able to deploy large numbers of identical systems at the same time. In addition, my systems are spread across multiple locations. Many of my servers are similar, but t...
Yes, the entire process can be automated. (1a) Array config: Assuming you have a stripped down proliant support pack you can do the logical drive config in the [CODE] section of kickstart with [CODE] . (1b) Firmware updates: HP supplies all the firmware updates as Linux executables. I wrote a shell script that scans th...
9
5
3,722
2011-05-18T21:13:27.840
pipeline_ops
serverfault.com
846,343
tomcat works but service tomcat status says it failed
This is my tomcat.service file, located at etc/systemd/system [CODE] now when i check the status of my tomcat it says ExecStop=/bin/kill -15 $MAINPID (code=exited, status=1/FAILURE) [CODE] i tried using service tomcat restart but it still says tomcat service failed. what may be the cause this?
Here's an error: [CODE] Remove those two spaces.
3
1
52,058
2017-04-25T03:01:44.313
infrastructure
serverfault.com
58,590
pgpool replication not allowing md5 authentication
I have installed both pgpool and postgresql via [CODE] . In [CODE] , I have made the changes necessary to use replication mode, as well as my two postgresql databases (currently all running on the same host). I am unable to figure out what I need to add to my [CODE] files in order to have pgpool connect to them. I keep...
It looks like your default authentication mode for TCP/IP connections ( [CODE] ) is [CODE] . So at a guess, you have PgPool connecting over TCP/IP. Change the auth mode for loopback connections on tcp/ip, or use unix sockets with pgpool (usually by omitting the [CODE] setting). If you're still stuck after reading: 19.1...
3
3
16,098
2014-02-10T14:26:44.593
api_errors
dba.stackexchange.com
843,578
Apache want port 80 without binding it to this port
When I want to start my apache server, it shows me this error: Starting httpd: (98) Address already in use: make_sock: could not bind to address [::]:80 (98) Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED] My httpd.conf f...
First thing to rule out: Apache is using another config file than the one you expect. Do the following: Kill whichever httpd process you have running Start Apache in foreground with explicit conf file /sbin/httpd -f /etc/httpd/conf/httpd.conf -DFOREGROUND Second thing: Check which other config files are loaded by your ...
1
1
534
2017-04-09T20:46:15.517
infrastructure
serverfault.com
29,019
Why do we need 2 matrices for word2vec or GloVe
Word2vec and GloVe are the two most known words embedding methods. Many works pointed that these two models are actually very close to each other and that under some assumptions, they perform a matrix factorization of the ppmi of the co-occurrences of the words in the corpus. Still, I can't understand why we actually n...
Might not be the answer you are seeking, but I'll still have a go: First, quick review of word2Vec, assume we are using skip gram. A typical Word2Vec train-able model consists of 1 input layer (for example, 10 000 long one-hot vector), a hidden layer (for example 300 neurons), an output (10 000 long one-hot vector) Inp...
13
9
5,259
2018-03-13T10:05:57.480
data_quality
datascience.stackexchange.com
121,396
HISTCONTROL=ignoreboth not working debian lenny
Can anybody confirm if by setting the the following env variables under debian lenny will make previous history entries not to be saved. GNU bash, version 3.2.39(1)-release [CODE] I have added them to my [CODE] but I keep getting repeated commands.
The options "ignoreboth" and "ignoredups" only prevent duplicates of the immediately preceding command from being added to the history. Earlier duplicates have no effect. [CODE] As you can see [CODE] appears twice and [CODE] appears once. You may be looking for the "erasedups" option. [CODE] Here both [CODE] and [CODE]...
1
3
2,272
2010-03-11T06:20:19.663
infrastructure
serverfault.com
462,744
postfix sendmail issue
I have postfix installed(should be default install). I only set the relayhost to be the gateway I need to go through. I then use sendmail as a test but the gateway rejects my message and I see that in my postfix logs. The weird thing is in the logs the from email address is incorrect (probably my fault somehow but that...
in /etc/postfix/main.cf, modifying mydomain and myorigin fixed the issue and setting mydomain to yyyy.com and myorigin to $mydomain fixed the issue. [CODE] Dean
0
1
152
2013-01-03T20:43:57.537
infrastructure
serverfault.com
532,848
iptables SSH connection logging
Is it possible to only write a log-entry when a connection is established ? I have tried: [CODE] to log outgoing SSH connections but this logs every single packet and this is as you can imagine a bit overwhelming for monitoring purposes. I am running SLES 11 SP3. So I would be grateful if anyone could point out a way t...
The Line you would need to log the traffic, might look possible as: [CODE] On another terminal view the logs [CODE] I am using -m state --state. However I would recommand to use [CODE] [CODE] for more. If you feel that you are being overwhelmed by the logs, you might consider changing the [CODE] . http://www.netfilter....
7
5
7,324
2013-08-22T07:22:49.247
pipeline_ops
serverfault.com
90,187
What does Page Life Expectancy say about the instance?
I have installed monitoring software on a few SQL Server instances in the environment. I am trying to find bottlenecks and fix some performance issues. I want to find out if some servers need more memory. I am interested in one counter: page life expectancy. It looks different on every machine. Why does it change often...
Taken from MSDN:- https://msdn.microsoft.com/en-us/library/ms189628.aspx Page life expectancy - Indicates the number of seconds a page will stay in the buffer pool without references. SQL always looks for data pages in memory. If a data page is not in memory SQL will have to go to disk (perform a physical IO operation)...
9
8
3,859
2015-01-26T13:57:51.320
warehouse_errors
dba.stackexchange.com
810,968
Cassandra snapshot restoring : random missing data
I'm having a hard time restoring snapshot on Apache Cassandra (version 3.0.9). As far as I can say, I'm following the procedure described on datastax blog, along with several other ones (for instance : http://datascale.io/cloning-cassandra-clusters-fast-way/ ). Yet I may be missing something, and everytime I make a res...
Ok, end of story, stupid me ! The [CODE] line in cassandra.yaml was wrongly "seded" during my restore procedure. If there is no space after the ':' for the [CODE] key, then cassandra fails to launch. therefore the line was kept commented and tokens not interpreted ! tldr : [CODE] = WRONG [CODE] = GOOD Thanks a lot to y...
5
0
3,224
2016-10-24T15:59:12.937
database_errors
serverfault.com
88,222
Using the whole dataset for testing (not validation) in case of small datasets
for an object detection task I created a small dataset to train an object detector. The class frequency is more or less balanced, however I defined some additional attributes with environmental conditions for each image, which results in a rather uneven distribution of classes depending on the viewed attribute (e.g. cl...
Considering that you have not used a cross-validation strategy, you could try to use the LOOCV ( Leave One Out Cross Validation ) strategy, so you have several splits (as many as samples considered in your training dataset) and still leave some samples as a final never-seen-before validation set. This is costly from a ...
2
2
77
2021-01-20T10:58:43.243
data_quality
datascience.stackexchange.com
1,077,748
Deploying a Serverless site behind CloudFront
I use Serverless to deploy a website to an AWS Lambda. This works fine. I now want to use CloudFront to proxy access to this Lambda and cache requests for static files. I have set up a CloudFront distribution, and created an origin with the origin domain name set to that of the Lambda API gateway, i.e. [CODE] (note: I ...
Quickly found the solution: I had forgotten to set up a behaviour using my new origin. This allowed access through CloudFront with no problems.
0
0
152
2021-09-16T10:13:01.817
api_errors
serverfault.com
216,592
unable to add a range to a tag using sh.addTagRange command
Have setup a 4 node test shard cluster: 1- mongos 1- config server 2- shard nodes hosting 1 shard each for a collection. Cluster is working perfectly, but when trying to run the following command: [CODE] Below is the shard status output: [CODE] tag: NYC { "ShardMapId" : "1" } -->> { "ShardMapId" : "7" } What am I missi...
Shard key zone (tag) ranges require specifying [CODE] and [CODE] bounds for a range of shard key values. Since your shard key values are currently strings, they will be compared using binary order rather than numerical order. The error message is correctly indicating that a minimum value of "7" (string) is not less tha...
0
0
359
2018-09-03T14:43:20.050
database_errors
dba.stackexchange.com
80,845
Large MySQL table, inserts with primary key check
I have a table with 12 million of rows and a following task I should frequently perform: Get search results from somewhere (50 rows). Each result has a key looking as a md5 hash and a table's PM is built on this field. Check what rows are currently stored. Store all other rows Question is what is the best way to perfor...
I think what you're looking is simply to use [CODE] . Forget about steps 1 and 2, just insert and ignore :) If you use the IGNORE keyword, errors that occur while executing the INSERT statement are ignored. For example, without IGNORE, a row that duplicates an existing UNIQUE index or PRIMARY KEY value in the table cau...
2
2
554
2014-10-22T14:43:33.563
data_quality
dba.stackexchange.com
371,393
How to config Apache to get error 502 Bad Gateway for testing?
I'm developing a website with ajax allow many [CODE] insert many many [CODE] to database in the same time. It's run ok on localhost, but when I deploy onto server (free Amazon server), it's often get error [CODE] . Now, I also want get [CODE] on my Apache localhost for testing my code. So, how to config server? Thank f...
You can use mod_rewrite [CODE] All urls, matched pattern "^/badurl" will return 502 error.
0
1
1,777
2012-03-20T03:46:12.317
infrastructure
serverfault.com
123,272
SQL Agent Jobs - What Permissions Required
We have a application that allows a user to view a list of SQL Agent jobs and create new ones. However, the application displays a form asking for user credentials. The user is a member of the SQLAgentOperatorRole in msdb . I tested by making the user a member of sysadmin and this works. Obviously I do not want to make...
[CODE] allows users to create jobs and to manage jobs that they create. The [CODE] allows users all the rights assigned to the [CODE] along with the permissions necessary to execute local jobs that they do not own. Member of [CODE] role allow the user to see any SQL Agent job located on the server instance, even the jo...
3
2
25,934
2015-12-09T10:39:45.720
warehouse_errors
dba.stackexchange.com
305,041
How to query nested json strings in jsonb field in postgres?
In our database, one JSONB column contains an object which has a property which is a string encoded JSON object. I need to deserialize this string during the query and inspect its values. [CODE] I can select the string value, but then casting that into a JSONB object doesn't work. These queries all return null for the ...
You need extract the value as [CODE] using the [CODE] operator, only then can you cast it back to a [CODE] or [CODE] value: [CODE] But the correct solution is to not store the value in a way that you need to cast back and forth every time you access it. This is because when you cast a [CODE] (or [CODE] ) to [CODE] all ...
4
9
18,193
2021-12-16T14:22:51.703
warehouse_errors
dba.stackexchange.com
284,913
Using a select max(blah) as an input parameter
This may be a naive question, but is it possible to use a select max(blah) to update a parameter in an input statement? input a,b,c into table1 values (10, 20, (select max(c) where a=10) + 1) for example? I tried this in postgresql and got the hint [CODE] I'm not even sure if this is possible. The idea is that if the e...
As the comments state, you forgot to include the [CODE] clause in your [CODE] query. Try this: [CODE]
0
1
97
2021-02-08T10:03:11.737
database_errors
dba.stackexchange.com
955,992
Kubernetes container messing files owner
I have a Debian box running Kubernetes, there I got ALL my production environment with nearly 50 deployments. My problem is that in one of the pods which is running Odoo server as a non priviledge user some files (not all of them) are being created with root user as owner. this is my deployment yaml: [CODE] In my entry...
Well I've found a workaround: The user I'm using to run odoo can do sudo without password. I have removed that. Now files aren't getting wrong permissions so it maybe a bug in Odoo or in one of it dependencies or in python itself that permits a common user to become superuser with sudo, if NOPASSWD is specified in the ...
0
0
184
2019-02-27T15:00:24.687
pipeline_ops
serverfault.com
638,865
PCI scan showing false positives on cloud-based server
I've run a third-party PCI scan recently on my website, and my main domain cleared 100%. The IP address, however, came up with some strange errors. It was claiming we were vulnerable to XSS attacks due to some CGIs that aren't even installed on our cloud server. The XSS-prone vulnerabilities are as follows: AgoraCart (...
Your server's HTTP access logs should show you what their scan did. That's the first place you should be looking. It ought to stick out as a major anomaly, in contrast with your normal logs. I am a little concerned when you say they scanned your "domain". Presumably they resolved a hostname in your domain to an IP addr...
-2
3
199
2014-10-22T15:20:45.430
database_errors
serverfault.com
244,122
Optimize MySQL FULLTEXT searches to use another index
I'm running a price comparison service, with a database of products that aims to become quite large (in the millions or more). The [CODE] table looks like this: [CODE] Now I need to query products belonging to a given site , using a search string , which translates into this query: [CODE] The query is not very fast , e...
Give this a try (and let us know if it helps): [CODE] Also, provide [CODE] .
1
0
313
2019-07-30T12:28:15.340
database_errors
dba.stackexchange.com