Errors such as Ora-00054:resource busy and acquire with nowait specified are often present when a database user inserts, updates, deletes data from a table in a database, or increases the primary key of a table or the index of a table.The main reason is that a transaction is executing (or the transaction has been locked), all of which cause the execution to be unsuccessful.1. Users with DBA authority to see which locks are in the databaseSelect T2.username,t2.sid,t2.serial#,t2.logon_timeFrom V$l
Cryptography is not magic. Encrypting an application does not guarantee its security under attack (especially if you do not have the authentication cipher set). But if you want to ensure the security of your program for business reasons, The traditional approach suggests you should not try to design your own Password. You should use the existing password Vault.
1, about consulDubbo's Registry is Zookeeper,redis.Motan's registry is Zookeeper,consul.Kubernetes's registry is ETCD.The advantage of using Consul is that the service finds everything that supports it.You can use a domain name for load balancing.It's also a nice server-side Discovery Pattern.2, start the consul service, call the interfaceFirst, install a consul
This article focuses on the spring Cloud Consul component, a tool that provides service discovery and configuration. The consul is distributed, highly available, and highly scalable.I. Introduction of ConsulConsul has the following properties:
Service discovery: Consul registers the service via HTTP, and the service and service are mutually sensed.
S
1, Linux under Consul installationFirst look at this level of information:Uname-aGo to directory, create new Folder Conusl, execute:wget Https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zipExtract:Unzip Consul_0.6.4_linux_amd64.zipGet binary file Consul:Verify, view version:./consul versionsIf you want to execute the
Adding in the configuration fileManagement: Endpoints: Web: exposure: include: "*" endpoint: shutdown: enabled:true Health : show-details:alwaysAnd when you open Consul, you can see the data.Like what: http GET http://10.9.5.4:8240/actuator/health:503 Output: {"status": "Down", " Details ': {' diskspace ': {' status ': ' Up ', ' details ': {' total ': 108131250176, ' free ': 39118278656, ' threshold ': 10485760}} , "db
, reducing the probability of redirection
To avoid this redirection of n-1/n, it is important to know the node where the master queue resides, and then not copy it.IdeasThe general meaning is this picture: 1. Register RABBITMQ in Consul (step 1), RABBITMQ health monitoring through Consul, and consul provide configuration center services, can store some RABB
ObjectiveWith the emergence of micro-services, the management of services is extremely important. All know that microservices are "split", the bloated single-block application, split into a number of lightweight services, each service can be in a short period of time to reconstruct, iterate, delivery. With the increase in the number of micro-services, due to quantitative quality, resulting in a new problem one of which is the management of services. With the growth of micro-services in the busin
In the previous article we talked about the concept of consul and how to use it under win: http://www.cnblogs.com/szlblog/p/9162557.htmlThe steps are as follows:1. Installing Virtual machine VMS 2 . Install CentOS 7.4 under Download (address is not provided) This is the installation example: VM virtual machine installation CentOS sample https://www.jb51.net/article/108088.htm3. Configure network environment (ensure network Pass)4. Download and inst
Original link Address: http://luyiisme.github.io/2017/04/22/spring-cloud-service-discovery-products/
Here on the usual use of services found in the product to carry out the comparison of characteristics, first of all to see the conclusion:
Feature
Consul
Zookeeper
Etcd
Euerka
Service Health Check
Service status, memory, hard drive, etc.
(weak) long connection, keepalive
Connect Heartbeat
Ava
Chapter 2 springboot + archaius + consul (Configuration Management) and springbootarchaius
Archaius(Produced by netflix)
Features:
Allows you to Dynamically Retrieve configurations.
The principle is to read the content from the configuration source every 60 s (default, configurable), so that after the configuration file is modified, the modified content can take effect without restarting the service.
Prerequisites:Use the archaius API to re
First install the consul environment, referring to the previous article: http://blog.csdn.net/mn960mn/article/details/51753893
Project planning, 2 service-side, 1 clients
First look at the service side,
One: server 1:
Project Dependencies
Note that adding Spring-boot-actuator is for the project to have access to the/health path to determine whether the service is healthy
Package com.pp.consul1;
Import org.springframework.boot.SpringApplication;
In the microservices architecture, each small service is composed of a number of nodes, the addition of nodes to remove the failure to be transparent downstream, it is necessary to introduce a service automatic registration and discovery mechanism, and Consul provides a complete solution, and built-in support for GRPC and HTTP services
Overall architecture
Service Invocation: Client Direct Connect Server call service
Service registration: Th
Consul as a service registration and discovery component of microservices, is a very important partCurrently want to use Consul as the unified management of configuration managementPrepare two machines11.11.11.1011.11.11.20Download Consul Linux version https://www.consul.io/downloads.htmlCreate folders on two machines, respectivelyMkdir/usr/local/
Label:1. Stop em and database
emctl stop dbconsole
shutdown immediate
2. Reinstall the DB software
.
When selecting components, select the Oracle Database Vault Option "
3. Modify the environment variable
oracle_home
4. Modify the Oracle_home in/etc/oratab
5. Copy the necessary files from the original home to the existing home
[[email protected] admin]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin
[[email protected] admin]$ CP tnsnames.o
Copy it from here.************************************************************************************************Online to find are both ZK and ETCD comparison, and consul relatively few, this feeling is reliable, also seen in other places on the consul of The Spit Groove, recorded************************************************************************************************LeadIn a distributed micro-serv
This is a creation in
Article, where the information may have evolved or changed.
The text of this text connection is: http://blog.csdn.net/freewebsys/article/details/56296013 not allowed to reprint without the Bo master.Bo main address is: Http://blog.csdn.net/freewebsys
1, about consul
Consul simplifies the process of registering and discovering services in a distributed environment, which is discover
The health check for a consul instance defaults to "/", which is the default location for useful endpoints in the Spring boot executor application. If you use a non-default context path or a servlet path (for example, Server.servletpath=/foo) or manage the endpoint path (for example, management.context-path=/admin), you need to change these, even for the executor application. You can also configure the interval that
library. The specific commands are as follows:Set global max_binlog_cache_size = 4294967296;650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/88/70/wKioL1f4X-3xeykOAAE9ULjT-2Y873.jpg "title=" 1.JPG " alt= "Wkiol1f4x-3xeykoaae9uljt-2y873.jpg"/>-- Summary -- due to the author's limited level, writing time is also very hasty, the text will inevitably appear some errors or inaccurate places, inappropriate to ask readers to criticize correct. This article is from the "He Lei" blog, make
follows:Set global max_binlog_cache_size = 4294967296;--Summary --The value is a dynamic parameter and can be adjusted at any time using the above command, so don't forget to add the parameter to MY.CNF to prevent it from being invalidated after restarting the database. due to the author's limited level, writing time is also very hasty, the text will inevitably appear some errors or inaccurate places, inappropriate to ask readers to criticize correct. This article is from the "He Lei" blog,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.