Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 10:56:12

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Anik

Pages: 1 [2] 3 4 ... 13
16
Kloxo-MR Technical Helps / Re: Tweaks with config.
« on: 2013-02-21, 02:28:54 »
Quote from: "costa1988sv"
i change as you config, and same thing
only mysql is not as yours

i used default apache setting

same thing very bad lod time

ex http://www.programe-tv.eu/static/sprites26.png , is from apache the problem 10+ sec load time

read carefully what he said.

17
Kloxo-MR Technical Helps / Re: Tweaks with config.
« on: 2013-02-21, 02:19:23 »
what about my config?

18
good work.

19
Kloxo-MR Technical Helps / Tweaks with config.
« on: 2013-02-20, 13:06:25 »
Hello guys,

i tried all the trial and error methods with the configuration files in my vps, for sometime it worked but it now again started to giving headaches. everyday i am getting 1-2 hours of downtime. The problem is in php-fpm, it's expiring as usual and the only way to fix it is to restart it manually or automatically. So i decided to post here most of the config files, test them, tweak them, drop them do anything you want. only we need a highly optimized configuration which will utilize every possible resource and will be top in performance and speed.

Before i began, the hardware and software of the sever is 8 core xeon, 2GB RAM, 4GB swap. nginxproxy, php-fpm event, php53u.

So lets drool. :)

# /etc/security/limits.conf

Code: [Select]
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4

# End of file

admin soft nofile 15000
admin hard nofile 32000
nginx soft nofile 10000
nginx hard nofile 22528
mysql soft nofile 10000
mysql hard nofile 16384
root soft nofile 10000
root hard nofile 16384

/etc/sysctl.conf

Code: [Select]
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456

fs.file-max = 80000

/etc/my.cnf

Code: [Select]
[mysqld]
skip-bdb
skip-locking
skip-external-locking
key_buffer_size = 45M
query_cache_size = 50M
sort_buffer_size = 32M
read_rnd_buffer_size = 32M
tmp_table_size = 80M
max_heap_table_size = 80M
table_cache = 300
thread_cache_size = 5
#default-storage-engine=myisam
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
thread_concurrency = 4
wait_timeout = 1200

## InnoDB
#innodb-buffer-pool-size        = 58M
#innodb-log-file-size           = 50M
#innodb-log-buffer-size         = 8M
#innodb-file-per-table          = 1
#innodb-open-files              = 500

# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0

[mysqld_safe]
log-error=/dev/null
expire_logs_days = 5
pid-file=/var/run/mysqld/mysqld.pid

/etc/php-fpm.conf

Code: [Select]
[global]
pid=/var/run/php-fpm/php-fpm.pid
error_log=/dev/null
log_level=alert
emergency_restart_threshold=10
emergency_restart_interval=1m
process_control_timeout=10s
daemonize=yes

include=/etc/php-fpm.d/*.conf

/etc/php-fpm.d/admin.conf

Code: [Select]
[admin]
listen = 127.0.0.1:51006
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
user = admin
group = admin
pm = dynamic
pm.max_children = 15
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 2
pm.max_requests = 1000
;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
request_terminate_timeout = 60s
request_slowlog_timeout = 20s
slowlog = /dev/null
rlimit_files = 2048
rlimit_core = 0
;chroot =
;chdir = /var/www
catch_workers_output = yes
security.limit_extensions = .php .php3 .php4 .php5

env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp

;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@domain.com
;php_flag[display_errors] = off
php_admin_value[error_log] = /dev/null
php_admin_value[session.save_path] = /var/lib/php/session
php_admin_flag[log_errors] = off
php_admin_value[memory_limit] = 64M

/etc/nginx/nginx.conf

Code: [Select]
user nginx;

worker_processes 5;
worker_rlimit_nofile 4096;

pid /var/run/nginx.pid;

events {
    worker_connections 2048;

    use epoll;
}


http {
    add_header Cache-Control public;
    server_names_hash_max_size 1024;
    server_names_hash_bucket_size 128;
    client_body_buffer_size 128k;
    client_max_body_size 32M;
    include '/etc/nginx/conf.d/*.conf';
    reset_timedout_connection off;
}

So here are they. if you need more configs to see, tellme.

Right now traffic are not too high, something about 800000 per month. so please tellme which config tweak will give me maximum.
by average it takes no more than 1.2 gb of ram and 20% processor state. page creation time is little slower too. So what should i change?

Anik.

20
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 22:13:23 »
so you will not use kloxo rpm further?

21
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 22:06:36 »
So what's the 'new panel'?  droping out kloxo?? :shock:

22
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 21:54:37 »
you can make kloxo more user friendly. fully ajaxified.

23
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 16:46:40 »
Quote from: "MRatWork"
Server for this forum already update with latest upload (new login face).

wheres the demo?? you should set one.

24
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 15:32:58 »
yes i saw that.

25
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 14:40:53 »
just got it little bolder.

26
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 14:38:08 »
yes left place is always a good space for logo.

well right now i don't have illustrator. but if you want, then i can take a try. should i?

27
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 14:36:19 »
you can also give the codename of kloxo-mr as KMR. Easy to pronounced.

For the above logo, if you want it in any custom size or style the tellme, i can do that.

28
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 14:29:23 »
What about this one? Simple and colorful as you want.

29
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 14:08:39 »
yes, the new looks is better than the before you did as a left sidebar. can you provide a demo user name and pass to see inside the box?

well it's very difficult to convert a ps document to coreldraw layer. can you edit it in photoshop? if you dont have ps then i can send you the software.

30
Kloxo-MR Releases / Re: Kloxo-MR Logo
« on: 2013-02-12, 12:09:32 »
Sent.

Pages: 1 [2] 3 4 ... 13

MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.047 seconds with 17 queries.

web stats analysis