Esta es una discusión para el tema Configurar vps en el foro Configuración de Servidores, bajo la categoría Área Administrativa; Amigo dbembibre agarre un nuevo vps con solo 2 cpu y 256 MB se que es poco pero que me recomendarías para el my.cnf que es lo que mas consume?
un #top
Código:
top - ...
Página:
Amigo dbembibre agarre un nuevo vps con solo 2 cpu y 256 MB se que es poco pero que me recomendarías para el my.cnf que es lo que mas consume?
un #top
Código:top - 06:58:10 up 10 days, 2:23, 1 user, load average: 0.10, 0.03, 0.01 Tasks: 92 total, 2 running, 90 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.3%sy, 0.0%ni, 97.0%id, 0.0%wa, 0.0%hi, 0.0%si, 2.7%st Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 262320k total, 223136k used, 39184k free, 15516k buffers Swap: 546200k total, 115388k used, 430812k free, 80196k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 15 0 2080 564 540 S 0.0 0.2 0:02.94 init 2 root RT -5 0 0 0 S 0.0 0.0 0:50.46 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.15 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.11 events/0 6 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 khelper 7 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kthread 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch 10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenbus 17 root RT -5 0 0 0 S 0.0 0.0 0:40.02 migration/1 18 root 39 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/1 19 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1 20 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1 23 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kblockd/0 24 root 10 -5 0 0 0 S 0.0 0.0 0:00.06 kblockd/1 25 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 26 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1 30 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 32 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 96 root 15 0 0 0 0 S 0.0 0.0 0:00.26 pdflush 97 root 15 0 0 0 0 S 0.0 0.0 0:00.09 pdflush 98 root 10 -5 0 0 0 S 0.0 0.0 0:02.24 kswapd0 99 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 100 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/1 234 root 10 -5 0 0 0 S 0.0 0.0 0:00.24 xenfb thread 235 root 10 -5 0 0 0 S 0.0 0.0 0:00.35 xenfb thread 248 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 278 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kstriped 291 root 10 -5 0 0 0 S 0.0 0.0 0:50.85 kjournald 320 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kauditd 354 root 17 -4 2164 372 368 S 0.0 0.1 0:00.02 udevd 769 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/0 770 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/1 771 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kmpath_handlerd 796 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 1112 root 18 0 1732 524 484 S 0.0 0.2 0:04.36 syslogd 1115 root 18 0 1684 324 320 S 0.0 0.1 0:00.00 klogd 1131 dbus 18 0 2748 376 372 S 0.0 0.1 0:00.00 dbus-daemon
Outsistem.net - Disfruta del Ocio en Internet
Software Taller 3.5 -La solución para el manejo y control de talleres de servicio técnico
Pues lo primero que te recomiendo es que abras un nuevo tema para no liad al amigo coleccioncromoahí no veo mysql, no se hacer magia de momento
abre un nuevo mensaje con la configuración actual de mysql cuanto sitios hay instalador en el VPS (tuyos) y el resto de cosas que aparecen aquí
http://www.vbhispano.com/foros/f35/p...ste_foro-1754/
Bueno a ver si me ayudan a configurar un VPS pequeño donde se almacena un solo sitio
- las características del vps son:
Código:Memoria asignada: 256 MB processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz stepping : 6 cpu MHz : 2533.422 cache size : 3072 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc pni bogomips : 6365.12 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz stepping : 6 cpu MHz : 2533.422 cache size : 3072 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni bogomips : 6365.12 Linux Apache v1.3.41 (cgi-fcgi) PHP version: 5.2.0 MySQL version: 5.0.45-community
- Solo Vbulletin andando
Ahorita anda sin problema a pesar que veo que se consume toda la ram
dejo u #top
Código:top - 07:21:03 up 10 days, 2:45, 1 user, load average: 0.03, 0.10, 0.08 Tasks: 90 total, 2 running, 88 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.0%sy, 0.0%ni, 96.4%id, 0.0%wa, 0.0%hi, 0.0%si, 3.6%st Cpu1 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 262320k total, 242952k used, 19368k free, 23484k buffers Swap: 546200k total, 115388k used, 430812k free, 57352k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 15 0 2080 564 540 S 0.0 0.2 0:02.94 init 2 root RT -5 0 0 0 S 0.0 0.0 0:50.62 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.15 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.11 events/0 6 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 khelper 7 root 10 -5 0 0 0 S 0.0 0.0 0:00.02 kthread 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenwatch 10 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 xenbus 17 root RT -5 0 0 0 S 0.0 0.0 0:40.12 migration/1 18 root 36 19 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/1 19 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1 20 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/1 23 root 11 -5 0 0 0 S 0.0 0.0 0:00.02 kblockd/0 24 root 10 -5 0 0 0 S 0.0 0.0 0:00.06 kblockd/1 25 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 26 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/1 30 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 32 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 96 root 15 0 0 0 0 S 0.0 0.0 0:00.26 pdflush 97 root 15 0 0 0 0 S 0.0 0.0 0:00.09 pdflush 98 root 10 -5 0 0 0 S 0.0 0.0 0:02.25 kswapd0 99 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 100 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/1 234 root 10 -5 0 0 0 S 0.0 0.0 0:00.24 xenfb thread 235 root 10 -5 0 0 0 S 0.0 0.0 0:00.35 xenfb thread 248 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 278 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kstriped 291 root 10 -5 0 0 0 S 0.0 0.0 0:50.96 kjournald 320 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kauditd 354 root 17 -4 2164 372 368 S 0.0 0.1 0:00.02 udevd 769 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/0 770 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 kmpathd/1 771 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 kmpath_handlerd 796 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 1112 root 18 0 1732 524 484 S 0.0 0.2 0:04.36 syslogd 1115 root 18 0 1684 324 320 S 0.0 0.1 0:00.00 klogd 1131 dbus 18 0 2748 376 372 S 0.0 0.1 0:00.00 dbus-daemon
en el archivo my.cnf
Variables en httpd.confCódigo:[mysqld] old-passwords skip-locking skip-innodb max_connections = 500 key_buffer = 16M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 1800 thread_cache_size = 128 wait_timeout = 900 connect_timeout = 10 tmp_table_size = 64M max_allowed_packet = 16M max_connect_errors = 10 read_rnd_buffer_size = 524288 bulk_insert_buffer_size = 8M thread_concurrency = 2 query_cache_limit = 1M query_cache_size = 96M query_cache_type = 1 query_prealloc_size = 16384 query_alloc_block_size = 16384 [mysqld_safe] err-log=/var/log/mysqld.log open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M
en php.iniCódigo:Timeout 300 KeepAlive On MaxKeepAliveRequests 150 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 20 StartServers 8 MaxClients 150 MaxRequestsPerChild 100
Si pueden ayudarme a optimizar algunas variables para que cuando crezca de usuarios no se me valla tan rápido al piso hasta cambiar a otro mas potente...Código:register_globals = off sendmail_path = /opt/exim/bin/exim -t error_reporting = E_ALL & ~E_NOTICE upload_max_filesize = 64M cgi.fix_pathinfo = 1 memory_limit = 64M session.save_path = "/tmp" [Zend] zend_optimizer.optimization_level=15 zend_extension_manager.optimizer=/opt/Zend/lib/Optimizer-3.2.2 zend_extension_manager.optimizer_ts=/opt/Zend/lib/Optimizer_TS-3.2.2 zend_extension=/opt/ioncube/ioncube_loader_lin_5.2.so zend_optimizer.version=3.2.2 zend_extension=/opt/Zend/lib/ZendExtensionManager.so zend_extension_ts=/opt/Zend/lib/ZendExtensionManager_TS.so
una consulta: cuanto podrá soportar lo máximo de usuarios este vps? hasta cuando llegara?
y muchas gracias ante manos
saludos![]()
Outsistem.net - Disfruta del Ocio en Internet
Software Taller 3.5 -La solución para el manejo y control de talleres de servicio técnico
Lo cierto es que no te consume porque no tiene usosolo la configuración de MySQL que tienes puesta requeriría más de un giga y medio solo para base de datos.
Te voy a dar una config mínima, dado que 256MB es nada, mi portatil tiene 4GB y mi ordenador que uso para retoque fotográfico 8GB, hoy en dia la memoria aunque sea ECC es barata
Por otro lado apache también necesitaría como 500MB para alojar esas 150 conexiones principales más los 100 hijos por cada una de ellas.
Guarda tus configs actuales, y esto es lo mínimo qeu puedes correr.
Aplica a httpd.conf y reinicia apache, esto es lo mínimo que puedes tirar con apache y ya implcaría que tuvieras 200mb para todos los hijos a la vez
Código:StartServers 3 MinSpareServers 3 MaxSpareServers 3 ServerLimit 30 MaxClients 20 MaxRequestsPerChild 100
Aplica en my.cnf y reinicia el servidor de mysql, no has puesto datos de puertos o scokets así que los he obviado
Código:# Main MySQL server options [mysqld] skip-locking # Set internal buffers, caches and stacks very low key_buffer = 16K max_allowed_packet = 16K table_cache = 1 sort_buffer_size = 16K read_buffer_size = 16K read_rnd_buffer_size = 1K net_buffer_length = 1K thread_stack = 16K # Don't listen on a TCP/IP port at all. # Will still work provided all access is done via localhost skip-networking server-id = 1 # Skip Berkley and Inno DB types skip-bdb skip-innodb # Set the query cache low query_cache_limit = 1048576 query_cache_size = 1048576 query_cache_type = 1 # Set various memory limits very low, disable memory-hogging extras [mysqldump] quick max_allowed_packet = 16K [mysql] no-auto-rehash [isamchk] key_buffer = 16K sort_buffer_size = 16K [myisamchk] key_buffer = 16K sort_buffer_size = 16K
jeje le voy a poner esta confgi a ver, si es muy poco pero ando probando mi otro vps al que le pusimos xcache tiene 4gb de ram 4 cpu y en otra compañía gracias hermano
Outsistem.net - Disfruta del Ocio en Internet
Software Taller 3.5 -La solución para el manejo y control de talleres de servicio técnico