App::highlight - a simple grep-like highlighter appAlex Balhatchet
App::highlight is a bit like grep, except that it doesn't filter out lines. In exchange for seeing all the output you get a lot more fun highlighting options to play with, and full Perl regex support of course.
I gave this talk at the London.pm technical meeting in July 2013.
App::highlight is available on Github and CPAN.
Microservices give us many options. We can pick different technologies, mix synchronous and asynchronous integration techniques or embrace different deployment patterns. But they also give us different options in how we think about securing our systems. Done right, and microservices can increase the security of your vital data and processes. Done wrong, and you can increase the surface area of attack. This talk will discuss the importance of defence in depth, discussing the many different ways in which you can secure your fine-grained, distributed architectures.
ELK: Moose-ively scaling your log systemAvleen Vig
This document discusses Etsy's journey with Elasticsearch, Logstash, and Kibana (ELK) over 3 years. It covers lessons learned in monitoring and scaling Logstash and Elasticsearch clusters. Key topics include sizing Elasticsearch and Logstash clusters based on resources like CPU, memory, disk I/O, and networking. Monitoring systems and metrics is also discussed. The document provides advice on optimizing Logstash performance by measuring baselines, managing garbage collection, and writing custom plugins when needed. Testing configuration changes is emphasized.
This document appears to be a transcript from a presentation on application security and microservices. The summary includes:
1) The presentation discusses security challenges and strategies for microservices architectures, including transport security, authentication, authorization, encryption of data at rest, and perimeter security approaches.
2) Prevention, detection, response and recovery are emphasized as important aspects of a security strategy, along with practices like short-lived credentials, patching, and "repaving" or rebuilding systems on deployments.
3) Managing security risks across polyglot systems is highlighted as a challenge, as is the need to automate security practices and conduct thorough post-mortem analyses of incidents.
Launching a Rocketship Off Someone Else's Backjoshelman
The document discusses strategies for startups to build on top of large platforms to gain users and grow rapidly. It notes that while platforms are not there to specifically help startups, they can be beneficial for acceleration if used correctly. The key strategies are to 1) build products that provide clear value to users and incentives for the platform, 2) design products to work independently of platforms since platforms will change, and 3) use platforms for user acquisition and acceleration only, not as a primary distribution method or business model. Successful examples include Instagram, YouTube, and Dubsmash who leveraged platforms initially but became independent destinations.
16. • ibdata1やib_logfileを削除して、
再起動するといきなり出た。
• エラーメッセージ
[Warning] InnoDB: Cannot open table mysql/slave_master_info from the internal data
dictionary of InnoDB though the .frm file for the table exists. See http://dev.mysql.com/
doc/refman/5.6/en/innodb-troubleshooting.html for how you can resolve the problem.
[Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be
opened.
[ERROR] Error in checking mysql.slave_master_info repository info type of TABLE.
[ERROR] Error creating master info: Error checking repositories.
[ERROR] Failed to create or recover replication info repository.
16
13年4月17日水曜日
17. まず、該当のテーブルを消す!
use mysql;
DROP TABLE IF EXISTS `innodb_index_stats`;
DROP TABLE IF EXISTS `innodb_table_stats`;
DROP TABLE IF EXISTS `slave_master_info`;
DROP TABLE IF EXISTS `slave_relay_log_info`;
DROP TABLE IF EXISTS `slave_worker_info`;
でも、.ibdは残っているのでこれも消す!
rm -rf /var/lib/mysql/mysql/innodb_index_stats.ibd
rm -rf /var/lib/mysql/mysql/innodb_table_stats.ibd
rm -rf /var/lib/mysql/mysql/slave_master_info.ibd
rm -rf /var/lib/mysql/mysql/slave_relay_log_info.ibd
rm -rf /var/lib/mysql/mysql/slave_worker_info.ibd
17
13年4月17日水曜日
22. 427 # ----------------------------------------------------------------------
428 # This will be the default config file
429 # ----------------------------------------------------------------------
430
431 $config_file= "$basedir/my.cnf";
432
433 my $cfg_template= find_in_basedir($opt,"file","my-default.cnf",
434 "share","share/mysql","support-files");
435 -e $cfg_template or cannot_find_file("my-default.cnf");
436
437 $copy_cfg_file= $config_file;
438 if (-e $copy_cfg_file)
439 {
440 $copy_cfg_file = s/my.cnf/my-new.cnf/;
441 # Too early to print warning here, the user may not notice
442 }
443 open (TEMPL, $cfg_template) or error("Could not open config template");
444 open (CFG, "> $copy_cfg_file") or error("Could not open config file");
445 while (<TEMPL>)
446 {
447 # Remove lines beginning with # *** which are template comments
448 print CFG $_ unless /^# ***/;
449 }
450 close CFG;
451 close TEMPL;
22
13年4月17日水曜日
27. • 環境 mysql5.5(Master) +
mysql5.6(Slave)
• エラーメッセージ
root@localhost[(none)]> show slave statusG
[...]
Last_IO_Error: The slave IO thread stops because the master has GTID_MODE OFF
and this server has GTID_MODE ON
27
13年4月17日水曜日
31. • エラーメッセージ
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 476849
Server version: 5.6.10-log MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
root@localhost[(none)]>
31
13年4月17日水曜日