I reduced my problem to the following example. We have two XML request types: <data1>some-data</data1>
and <data2>other-data</data2>
coming to the same endpoint something like POST https://example.com/my-endpoint
. We want to serve data1
with AWS Lambda Node.js and data2
with AWS EC2 Apache + PHP. How is this possible?
inf3rno's questions
Afaik. there are 3 types of RAID:
- hardware - e.g. an expensive PCIE RAID card / or rarely onboard RAID which have a dedicated CPU, probably with write cache and BBU
- software - e.g. ZFS, MD, BTRFS software RAID
- fake - e.g. a cheap PCIE RAID card / or most of the onboard RAIDs which uses the RAM and CPU on the motherboard.
By using the BTRFS software RAID the filesytem knows about the drives and when it finds a block with wrong checksum, then it can use the clone (RAID1/10) or the parity (RAID5/6) to restore the affected block and fix the error. So our files won't degrade over time.
The question is whether the same self-healing mechanism works with hardware or fake RAIDs by BTRFS?
I guess there should be an API which the BTRFS can use to access the clone/parity of the affected block and fix it. I think there is a higher chance to have something like this by onboard RAID, but I don't know whether such a thing exists or every RAID is implemented differently and there is not standard API the BTRFS could use.
I bought an MSI C236M workstation. It claims that it supports RAID 0/1/5/10. How can I decide what kind of RAID this is? Is it always "fake" RAID, or is there any chance that it is a true hardware RAID?
To my understanding it is better to use a software or a true hardware RAID, than these fake RAIDs coming with the motherboards... https://serverfault.com/a/522346/101323
Is it possible to use ZFS without RAID? Does it have any advantage to do so compared to using BTRFS instead?
My problem is, that the upload directory suddenly changed by a php application. I set it in php.ini to ../upload, and it worked for about 1 year. Now I don't know why, but php uploads to C:\Windows\Temp despite the php.ini-s upload settings.
There is another strange thing with that application. The web.config file doesn't work without the code:
<handlers>
<add name="iphonephpcgi" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:\creation\software developer\projects\iphonetok\php-5.2.17\php-cgi.exe" resourceType="Unspecified" />
</handlers>
The other applications work well, and they uploads to the right directory. Any idea how to fix it?
My problem is, that I have to set env variables (like GIT_EXEC_PATH) on a server. I need that variables by every connection (so by bash and by remote commands either). I managed to set those variables by bash with .bash_profile, but I have problems with the remote commands. I found that it's possible to write commands in ~/.ssh/authorized_keys before the actual rsa key, but I don't wan't to write there always, I need a permanent solution... I found that the ~/.ssh/rc file is executed by every ssh login, so I put there my env variable declarations, but it didn't work. The variables are set in the rc file, but after that they disappeared. :S Maybe the rc file runs in a subshell :S Is there any way to define those variables in bash and in remote commands without code duplication?
Edit:
I edited the question, because the server is a godaddy shared host, so it has a unique config. The /etc/ssh/sshd_config and the /etc/ssh/ssh_config files are empty. There are comments in those files, if you are curious I can copy it here.
- The ~/.bash_profile is sourced (by bash connections only),
- the ~/.bashrc is never sourced,
- the ~/.profile is never sourced,
- the ~/.ssh/environment is never sourced,
- the ~/.ssh/rc is sourced (by bash and remote both), but I think it's called in subshell, because the variables disappearing.
- The ~/.ssh/authorized_keys is sourced by every time, but I have to write the commands before every rsa key (so I don't wan't to configure with that).
Summary:
I can configure the bash well (with .bash_profile), but I cannot configure the remote calls. That's the problem. I'm looking for a file which is sourced by both bash and remote commands.
For example:
The git-upload-pack command finds the exe file, because the GIT_EXEC_PATH env variable is set, but with remote: "git clone user@domain.com:myrepo local/myrepo" the server doesn't find that command, because the GIT_EXEC_PATH is not set.
Edit2:
According to this, and my printenv logs: the ~/.ssh/rc is running in normal shell, not in subshell, so it's a riddle why the env variables not sticking...
I created an executable: ~/logenv:
echo "" >> mylog.txt
date >> mylog.txt
printenv >> mylog.txt
echo "" >> mylog.txt
And put this into the ~/.ssh/rc:
export AAA=teszt
source ~/logenv
By bash login & "source logenv" the result was:
Tue May 15 04:21:37 MST 2012
TERM=cygwin
SHELL=/bin/bash
SSH_CLIENT=censored
SSH_TTY=/dev/pts/2
USER=myuser
AAA=teszt
MAIL=/var/mail/myuser
PATH=/usr/local/bin:/bin:/usr/bin
PWD=/home/content/65/7962465
SHLVL=3
HOME=/var/chroot/home/content/65/7962465
LOGNAME=myuser
SSH_CONNECTION=censored
_=/usr/bin/printenv
Tue May 15 04:21:41 MST 2012
HOSTNAME=censored
TERM=cygwin
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=censored
By remote "ssh myuser@domain.com 'exec ~/logenv'" the result was:
Tue May 15 04:25:52 MST 2012
SHELL=/bin/bash
SSH_CLIENT=censored
USER=myuser
AAA=teszt
MAIL=/var/mail/myuser
PATH=/usr/local/bin:/bin:/usr/bin
PWD=/home/content/65/7962465
SHLVL=3
HOME=/var/chroot/home/content/65/7962465
LOGNAME=myuser
SSH_CONNECTION=censored
_=/usr/bin/printenv
Tue May 15 04:25:52 MST 2012
SHELL=/bin/bash
SSH_CLIENT=censored
USER=myuser
PATH=/usr/local/bin:/bin:/usr/bin
MAIL=/var/mail/myuser
PWD=/home/content/65/7962465
HOME=/var/chroot/home/content/65/7962465
So the rc file is sourced, but after that the variables disappering... :S
I'm working with win7, IIS7.5, php 5.2.17 now, and I have a problem with the php error logging: Error logging works well as long as the entry point (called php file) is not in a subdirectory of the document root. (Display error shows the error in that case, but error is not logged.)
Any idea how to solve that?
I have troubles with IIS7 host headers. I'd like to create a domain for managing mysql with phpmyadmin. I tried to configure with these settings without success.
The browser displays the localhost instead of the phpmyadmin page. Can anybody tell me how should I configure the IIS?